1
0
Fork 0

dotsync: test existence of package before install

This commit is contained in:
Luca Bilke 2024-09-26 11:11:32 +02:00
parent 9c120f431e
commit 44f1d24434
1 changed files with 1 additions and 1 deletions

View File

@ -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 + $?))
}