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.
This commit is contained in:
parent
62db03c969
commit
11dd1e2eac
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
CONFIG="install.conf.json"
|
CONFIG="install.conf.json"
|
||||||
DOTBOT_DIR="dotbot"
|
DOTBOT_DIR="dotbot"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue