diff options
author | Anish Athalye <me@anishathalye.com> | 2014-08-18 11:54:52 -0700 |
---|---|---|
committer | Anish Athalye <me@anishathalye.com> | 2014-08-18 11:57:17 -0700 |
commit | 11dd1e2eac0290ea3aede34e44a20135598c777b (patch) | |
tree | 51e0624f4168c87f4e4452125112df841aee4ed3 /tools | |
parent | 62db03c969807f7d93a2ef7cb8b753995b24b221 (diff) |
Make install script safer
Call `set -e` to make the script exit if any command fails and `set -u`
to treat unset variables as an error.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/git-submodule/install | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/git-submodule/install b/tools/git-submodule/install index 602a5a4..aa38107 100755 --- a/tools/git-submodule/install +++ b/tools/git-submodule/install @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -eu + CONFIG="install.conf.json" DOTBOT_DIR="dotbot" |