[install] Terminate install script when failed to update shell config

Close #354
This commit is contained in:
Junegunn Choi 2015-09-24 10:51:05 +09:00
parent aec48f159b
commit 98d2bfa0db

View File

@ -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