From 7a8ecc84b7e9ec1ea9c71355ef38cbdc6a46f2af Mon Sep 17 00:00:00 2001 From: Jason Swank Date: Tue, 9 Jan 2024 18:27:30 -0500 Subject: [PATCH] install.sh: improve --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index a020918..2607142 100755 --- a/install.sh +++ b/install.sh @@ -12,13 +12,13 @@ git submodule update --init --recursive # if these aren't links, move them out of the way? for f in ~/.zshrc ~/.profile; do - if [ -f $f ]; then - mv $f $f.orig + if [ -f "$f" ]; then + mv "$f" "$f.orig" fi done -if [ -n $1 ]; then - $STOW -t $HOME $1 +if [ -n "$1" ]; then + $STOW -t $HOME "$1" exit 1 fi @@ -36,6 +36,6 @@ for dir in \ tmux \ zsh do - $STOW -t ~/ $dir + $STOW -t $HOME $dir done