From 774c0906676c70b64db91d4d87fb6bf9983cf43d Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Wed, 28 Apr 2021 09:15:48 -0500 Subject: cleaning some lint out of the deploy script --- deploy.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy.sh b/deploy.sh index 114dc09..7d4f3ac 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -e +set -euv pipefail # clean out old backups rm -rf dotfiles-backup @@ -29,10 +29,10 @@ cd .. cd home for f in * do - if [ -e ~/.${f} ]; then - mv ~/.${f} ../dotfiles-backup/${f} + if [ -e "$HOME/.${f}" ]; then + mv "$HOME/.${f}" "../dotfiles-backup/${f}" fi - ln -sf "$(pwd)/${f}" ~/.${f} + ln -sf "$(pwd)/${f}" "$HOME/.${f}" done cd .. -- cgit v1.2.3