aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2023-10-27 16:07:32 -0500
committerToby Vincent <tobyv@tobyvin.dev>2023-10-27 16:07:32 -0500
commitcfc1d095a4c4c8f39b968464afc5aaae8e7d995b (patch)
tree072240122a97b46ad47b1022aa296624090ab114
parentbf2deb4e7e4d12767ea56118017e6e1cc384ae47 (diff)
fix: check for staged changes when cleaning links
-rwxr-xr-xinstall.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 9bf276d..d2ffb34 100755
--- a/install.sh
+++ b/install.sh
@@ -9,6 +9,7 @@ printf "%s: Removing bad links\n" "$0"
(
git diff-tree --no-commit-id --name-status e6051a3..HEAD -r
git diff --no-commit-id --name-status -r
+ git diff --no-commit-id --name-status -r --staged
) |
grep -oP 'D\t[^/]+/\K(.*)' |
while read -r f; do