summaryrefslogtreecommitdiffstatshomepage
path: root/install.sh
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2023-10-25 18:37:07 -0500
committerToby Vincent <tobyv@tobyvin.dev>2023-10-25 18:37:07 -0500
commit510f42c8ce84613f325da9a1a20473988e24c033 (patch)
tree845e6ad0620adc9c13d3b8be62c3c84cb9d6e48f /install.sh
parent4cbb0e393b47c1b17456249575509d2d58c4196c (diff)
fix: include working tree when listing removed files
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 1bd59c6..9bf276d 100755
--- a/install.sh
+++ b/install.sh
@@ -6,7 +6,10 @@ set -e
CDPATH='' cd -- "$(dirname -- "$0")" || exit
printf "%s: Removing bad links\n" "$0"
-git diff-tree --no-commit-id --name-status e6051a3..HEAD -r |
+(
+ git diff-tree --no-commit-id --name-status e6051a3..HEAD -r
+ git diff --no-commit-id --name-status -r
+) |
grep -oP 'D\t[^/]+/\K(.*)' |
while read -r f; do
if [ -L "../$f" ] && [ ! -e "../$f" ]; then