diff options
-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" |