From 3c095b6ac6598a4487dc15c47fa4d5c7fa6ba0b4 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Thu, 13 Jul 2023 14:19:00 -0500 Subject: fix deply bug --- deploy.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index a5e7876..ad31989 100755 --- a/deploy.sh +++ b/deploy.sh @@ -58,10 +58,11 @@ function link { function link_contents { local src="$1" local dest="$2" + local prefix="${3:-}" if [ -e "$src" ]; then for f in "$src"/* do - link "$(pwd)/$f" "$dest/$(basename "$f")" + link "$(pwd)/$f" "$dest/$prefix$(basename "$f")" done fi } @@ -74,7 +75,7 @@ function deploy { } # deploy to home -link_contents home "$HOME" +link_contents home "$HOME" '.' # deploy to XDG dirs deploy config "$xconfig" -- cgit v1.2.3