mirror of
				https://github.com/avatao-content/test-tutorial-framework
				synced 2025-11-04 02:22:55 +00:00 
			
		
		
		
	Add script to update the file hash in oneliner
This commit is contained in:
		
							
								
								
									
										11
									
								
								hack/update_oneline_install.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										11
									
								
								hack/update_oneline_install.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
if [ "$(uname)" == "Darwin" ]; then
 | 
			
		||||
    readlink_cmd="greadlink" 
 | 
			
		||||
    sed_cmd="gsed"
 | 
			
		||||
else
 | 
			
		||||
    readlink_cmd="readlink"
 | 
			
		||||
    sed_cmd="sed"
 | 
			
		||||
fi
 | 
			
		||||
SCRIPT_DIR="$(dirname $($readlink_cmd -f $0))"
 | 
			
		||||
 | 
			
		||||
$sed_cmd -i "s/SHA=\w\+/SHA=$(sha256sum hack/bootstrap_tfw_dev.sh | cut -d ' ' -f1)/g" "${SCRIPT_DIR}/oneline_install.sh"
 | 
			
		||||
		Reference in New Issue
	
	Block a user