Let 3.files.sh logs installed files

This commit is contained in:
clsty
2025-11-18 17:02:46 +08:00
parent e830dc93cc
commit 9fd83a2812
5 changed files with 94 additions and 37 deletions
+10
View File
@@ -415,3 +415,13 @@ function ensure_cmds(){
install_cmds "${not_found_cmds[@]}"
fi
}
function dedup_and_sort_listfile(){
if test -f "$1"; then
echo "File not found: $1" >&2; return 2
else
temp="$(mktemp)"
sort -u -- "$1" > "$temp"
mv -f -- "$temp" "$2"
fi
}