summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAnish Athalye <me@anishathalye.com>2014-08-18 11:54:52 -0700
committerAnish Athalye <me@anishathalye.com>2014-08-18 11:57:17 -0700
commit11dd1e2eac0290ea3aede34e44a20135598c777b (patch)
tree51e0624f4168c87f4e4452125112df841aee4ed3 /tools
parent62db03c969807f7d93a2ef7cb8b753995b24b221 (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-xtools/git-submodule/install2
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"