From: Tucker Johnson Date: Fri, 14 Aug 2026 19:30:21 +0000 (-0400) Subject: stow-bug X-Git-Url: https://git.newer.systems/?a=commitdiff_plain;p=TuCLS.git stow-bug --- diff --git a/tucls.sh b/tucls.sh index 1731ac8..f95ccf0 100755 --- a/tucls.sh +++ b/tucls.sh @@ -175,7 +175,12 @@ cloneandstow() { sudo -u "$name" git -C "$repodir" clone -q "$1" "$dir" 2>/dev/null || { cd "$dir" || return 1; sudo -u "$name" git pull --force origin master 2>/dev/null || return 1; } cd "$repodir" || return 1 - sudo -u "$name" stow -t "/home/$name" "$progname" + # --no-folding: without this, stow will collapse an entire empty target + # directory (e.g. ~/.local/bin) into a single symlink into this repo + # instead of symlinking the files inside it individually. That breaks + # anything else that writes into the same directory later (e.g. pipx, + # npm) by making it write straight into the git working tree. + sudo -u "$name" stow --no-folding -t "/home/$name" "$progname" [ -f "$dir/Makefile" ] && { cd "$dir" || return 1; make install >/dev/null 2>&1; } cd /tmp || return 1 }