mirror of
				https://github.com/avatao-content/test-tutorial-framework
				synced 2025-11-04 09:02:55 +00:00 
			
		
		
		
	Make hack scripts fail more loudly
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
				
			|||||||
set -e
 | 
					set -eo pipefail
 | 
				
			||||||
 | 
					
 | 
				
			||||||
LOGFILE="/tmp/bootstrap_tfw.log"
 | 
					LOGFILE="/tmp/bootstrap_tfw.log"
 | 
				
			||||||
trap 'echo "Something went wrong. Read the log az $LOGFILE"' ERR
 | 
					trap 'echo "Something went wrong. Read the log az $LOGFILE"' ERR
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
#!/usr/bin/env bash
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
set -e
 | 
					set -eo pipefail
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ "$(uname)" == "Darwin" ] && readlink_cmd="greadlink" || readlink_cmd="readlink"
 | 
					[ "$(uname)" == "Darwin" ] && readlink_cmd="greadlink" || readlink_cmd="readlink"
 | 
				
			||||||
SCRIPT_DIR="$(dirname $($readlink_cmd -f $0))"
 | 
					SCRIPT_DIR="$(dirname $($readlink_cmd -f $0))"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user