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() {
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue