Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Close #354

authored by Junegunn Choi · committed by Junegunn Choi · parent aec48f1 · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:install+2 added
243 unmodified lines
244 fi245fi246247append_line() {248 set -e249 echo "Update $2:"250 echo " - $1"251 [ -f "$2" ] || touch "$2"252 if [ $# -lt 3 ]; then
8 unmodified lines
261 echo "$1" >> "$2"262 echo " + Added"263 fi264 echo265 set +e266}267268echo269for shell in bash zsh; do
20 unmodified lines