Fix file existence check in dedup_and_sort_listfile (#2514)

This commit is contained in:
Celestial.y
2025-11-19 06:30:39 +08:00
committed by GitHub
+1 -1
View File
@@ -417,7 +417,7 @@ function ensure_cmds(){
}
function dedup_and_sort_listfile(){
if test -f "$1"; then
if ! test -f "$1"; then
echo "File not found: $1" >&2; return 2
else
temp="$(mktemp)"