Skip to content

Commit

Permalink
clean-duplicates: escape + in filenames (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiota committed Apr 8, 2024
1 parent 8ca5774 commit 4f95606
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ function clean-duplicates() {
_TO_MV=$(
echo "${_DUPLICATED[@]}" \
| awk '{print "find -name \""$1"*\" -printf \"%T@ %p\\n\" | sort -n | grep -Po \"\\.\\/"$1"(((-[^-]*){3}\\.pkg\\.tar(?>\\.xz|\\.zst)?))\\.sig$\" | head -n -1;"}' \
| sed 's/\+/\\+/g' \
| bash \
| awk '{sub(/\.sig$/,"");print $1"\n"$1".sig"}'
)
Expand Down

0 comments on commit 4f95606

Please sign in to comment.