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() {
for f in *; do
[ -d "$f" ] && {
heading "$f"
deploy "$f"
}
for item in "$DOTFILES"/*; do
[ ! -d "$item" ] && continue
heading "${item#$DOTFILES/}"
deploy "$item"
done
}
bin_extras() {
heading 'stale ~/.local/bin commands'
heading "stale $TARGET/.local/bin commands"
for cmd in $TARGET/.local/bin/*; do prune_cmd "$cmd"; done;
}