install: ensure the script can be run from anywhere

This commit is contained in:
Fernando Schauenburg 2022-02-02 17:53:24 +01:00
parent c57054ff97
commit 73bde45645

View file

@ -43,16 +43,15 @@ greeting() {
} }
deploy_packages() { deploy_packages() {
for f in *; do for item in "$DOTFILES"/*; do
[ -d "$f" ] && { [ ! -d "$item" ] && continue
heading "$f" heading "${item#$DOTFILES/}"
deploy "$f" deploy "$item"
}
done done
} }
bin_extras() { bin_extras() {
heading 'stale ~/.local/bin commands' heading "stale $TARGET/.local/bin commands"
for cmd in $TARGET/.local/bin/*; do prune_cmd "$cmd"; done; for cmd in $TARGET/.local/bin/*; do prune_cmd "$cmd"; done;
} }