aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh8
1 files 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 ..