run.sh: don't silently ignore a non-executable file argument
[c11tester.git] / run.sh
diff --git a/run.sh b/run.sh
index 00ffd94..bb204de 100755 (executable)
--- a/run.sh
+++ b/run.sh
@@ -17,7 +17,7 @@ PREFIX=
 export LD_LIBRARY_PATH=.
 
 [ $# -gt 0 ] && [ "$1" = "gdb" ] && PREFIX=gdb && shift
 export LD_LIBRARY_PATH=.
 
 [ $# -gt 0 ] && [ "$1" = "gdb" ] && PREFIX=gdb && shift
-[ $# -gt 0 ] && [ -x "$1" ] && [ -f "$1" ] && BIN="$1" && shift
+[ $# -gt 0 ] && [ -e "$1" ] && BIN="$1" && shift
 
 
-set -x
+set -xe
 $PREFIX $BIN $@
 $PREFIX $BIN $@