From 44f1d24434a9a4a978f2ecd8b221254dea415fc5 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Thu, 26 Sep 2024 11:11:32 +0200 Subject: [PATCH] dotsync: test existence of package before install --- common/.local/bin/dotsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/.local/bin/dotsync b/common/.local/bin/dotsync index 66742c7a..e98d90a5 100755 --- a/common/.local/bin/dotsync +++ b/common/.local/bin/dotsync @@ -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 + $?)) }