dotsync: test existence of package before install
This commit is contained in:
parent
9c120f431e
commit
44f1d24434
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ stow_git() {
|
||||||
multi_stow() {
|
multi_stow() {
|
||||||
ret=0
|
ret=0
|
||||||
for package in common "$(hostname)"; do
|
for package in common "$(hostname)"; do
|
||||||
[ -n "$package" ] && {
|
[ -n "$package" ] && [ -e "${STOW_DIR}/${package}" ] && {
|
||||||
stow --no-folding -d "$STOW_DIR" -t "$HOME" "$@" "$package"
|
stow --no-folding -d "$STOW_DIR" -t "$HOME" "$@" "$package"
|
||||||
ret=$((ret + $?))
|
ret=$((ret + $?))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue