diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2023-10-25 18:37:07 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2023-10-25 18:37:07 -0500 |
commit | 510f42c8ce84613f325da9a1a20473988e24c033 (patch) | |
tree | 845e6ad0620adc9c13d3b8be62c3c84cb9d6e48f /install.sh | |
parent | 4cbb0e393b47c1b17456249575509d2d58c4196c (diff) |
fix: include working tree when listing removed files
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |