Fail early if any subcommand fails or if an udefined var is used

I like my shell scripts to be paranoid.
This commit is contained in:
Ben Liblit 2017-07-14 21:45:51 -07:00
parent 433cd78f65
commit a1ef133501
1 changed files with 1 additions and 1 deletions

2
com.ibm.wala.cast/source/c/cbuild.sh Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -eu
if (uname | grep -i "cygwin"); then
# This should be the default for most of cases;