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