mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
Let 3.files.sh logs installed files
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user