Skip to content

Commit 7e05873

Browse files
committed
Ensure the ignore list of files is unique before diffing
1 parent 2856fb3 commit 7e05873

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packcheck.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,10 +1533,10 @@ your .packcheck.ignore file."
15331533
local sane_ignore_file=".packcheck/sane-ignore"
15341534
printf "$pi_files_exist" > "$sane_ignore_file"
15351535
cat "$sane_ignore_file" .packcheck/tar-ztf.txt \
1536-
| sort | grep -v '^$' > .packcheck/tar-ztf1.txt
1536+
| sort | grep -v '^$' | uniq > .packcheck/tar-ztf1.txt
15371537
else
15381538
cat .packcheck/tar-ztf.txt \
1539-
| sort | grep -v '^$' > .packcheck/tar-ztf1.txt
1539+
| sort | grep -v '^$' | uniq > .packcheck/tar-ztf1.txt
15401540
fi
15411541
git ls-files | sort | grep -v '^$' > .packcheck/git-ls-files.txt
15421542
local diff_res_file=".packcheck/tar-git-diff.txt"

0 commit comments

Comments
 (0)