aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2023-04-29 09:52:00 +0000
committerLuca Matei Pintilie <lucafulger@gmail.com>2023-04-29 09:52:00 +0000
commit1a483833cd48f7d2b6b7910ac61d959fc377f082 (patch)
treeba372d5209ad9bc47914e17838ab3a9e15ddb855 /bootstrap.sh
parent8adc616a66e827bc70fd09a01a558fb4a03f1a3a (diff)
downloaddotfiles-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-xbootstrap.sh7
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