mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-11 23:50:20 +08:00
[install] Terminate install script when failed to update shell config
Close #354
This commit is contained in:
1 parent
aec48f159b
commit
98d2bfa0db
1 file changed
+2
@@ -245,6 +245,7 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
append_line() {
|
append_line() {
|
||||||
|
set -e
|
||||||
echo "Update $2:"
|
echo "Update $2:"
|
||||||
echo " - $1"
|
echo " - $1"
|
||||||
[ -f "$2" ] || touch "$2"
|
[ -f "$2" ] || touch "$2"
|
||||||
@@ -261,6 +262,7 @@ append_line() {
|
|||||||
echo " + Added"
|
echo " + Added"
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
|
set +e
|
||||||
}
|
}
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|||||||
Reference in new issue
Block a user