install: ensure the script can be run from anywhere
This commit is contained in:
parent
c57054ff97
commit
73bde45645
1 changed files with 5 additions and 6 deletions
11
install.sh
11
install.sh
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue