diff options
author | Luca Matei Pintilie <lucafulger@gmail.com> | 2023-04-29 09:52:00 +0000 |
---|---|---|
committer | Luca Matei Pintilie <lucafulger@gmail.com> | 2023-04-29 09:52:00 +0000 |
commit | 1a483833cd48f7d2b6b7910ac61d959fc377f082 (patch) | |
tree | ba372d5209ad9bc47914e17838ab3a9e15ddb855 /bootstrap.sh | |
parent | 8adc616a66e827bc70fd09a01a558fb4a03f1a3a (diff) | |
download | dotfiles-1a483833cd48f7d2b6b7910ac61d959fc377f082.tar dotfiles-1a483833cd48f7d2b6b7910ac61d959fc377f082.tar.gz dotfiles-1a483833cd48f7d2b6b7910ac61d959fc377f082.tar.bz2 dotfiles-1a483833cd48f7d2b6b7910ac61d959fc377f082.tar.lz dotfiles-1a483833cd48f7d2b6b7910ac61d959fc377f082.tar.xz dotfiles-1a483833cd48f7d2b6b7910ac61d959fc377f082.tar.zst dotfiles-1a483833cd48f7d2b6b7910ac61d959fc377f082.zip |
Add back marks and enable cursorline
Diffstat (limited to '')
-rwxr-xr-x | bootstrap.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index 528cc18..12247fb 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,8 +1,9 @@ #!/usr/bin/env sh +# vi: ft=sh SYMLINKDIR="$(readlink -f "$0")" BASEDIR="$(dirname "$SYMLINKDIR")" -cd $BASEDIR +cd "$BASEDIR" || exit 1 doIt() { git submodule update --init --recursive @@ -24,9 +25,9 @@ then doIt; else printf "This may overwrite existing files in your home directory. Are you sure? (y/n) " - read REPLY + read -r REPLY echo "" - if [ "$REPLY" = "y" -o "$REPLY" = "Y" ] + if [ "$REPLY" = "y" ] || [ "$REPLY" = "Y" ] then doIt else exit 1 |