summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-09-24 10:51:05 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-09-24 10:51:05 +0900
commit98d2bfa0db3cd605f05b518338d95d4227dabb75 (patch)
tree0dea5203c829fc71956539d1dccb2317b696d437
parentaec48f159b66c0ef3be643741a2cbe99b512aa26 (diff)
[install] Terminate install script when failed to update shell config0.10.6
Close #354
-rwxr-xr-xinstall2
1 files changed, 2 insertions, 0 deletions
diff --git a/install b/install
index 51b56ec7..f5890767 100755
--- a/install
+++ b/install
@@ -245,6 +245,7 @@ EOF
fi
append_line() {
+ set -e
echo "Update $2:"
echo " - $1"
[ -f "$2" ] || touch "$2"
@@ -261,6 +262,7 @@ append_line() {
echo " + Added"
fi
echo
+ set +e
}
echo