diff options
author | Matt Singleton <matt@xcolour.net> | 2023-07-13 14:19:00 -0500 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2023-07-13 14:19:00 -0500 |
commit | 3c095b6ac6598a4487dc15c47fa4d5c7fa6ba0b4 (patch) | |
tree | 84ee27cbdc2e4295941734da3eabfbdbab3345e7 | |
parent | 7110c5719602c49902765f330da9bb93cbd41184 (diff) |
fix deply bug
-rwxr-xr-x | deploy.sh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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" |