From 67b5c0aa428259197e8c814d75748427ba64e83e Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Thu, 21 Apr 2022 08:21:28 -0500 Subject: rearranging the deck chairs --- deploy.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 632739b..81b4989 100755 --- a/deploy.sh +++ b/deploy.sh @@ -2,8 +2,6 @@ set -eo pipefail -mkdir -p dotfiles-backup - if command -v unzip > /dev/null; then UNZIPCMD="unzip" fi @@ -20,6 +18,8 @@ if [ -z "$UNZIPCMD" ] || [ -z "$VIMCMD" ] || [ -z "$DLCMD" ]; then exit 1 fi +set -u + # XDG layout xcache="${XDG_CACHE_HOME:-${HOME}/.cache}" xdata="${XDG_DATA_HOME:-${HOME}/.local/share}" @@ -33,6 +33,7 @@ function link { src="$1" dest="$2" if [ -e "$dest" ] && [ ! -L "$dest" ]; then + mkdir -p "../dotfiles-backup" mv "$dest" "../dotfiles-backup/." fi if [ ! -e "$dest" ]; then -- cgit v1.2.3