aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-27 00:59:32 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-27 00:59:32 +0200
commita81ee1fc136af28edee4eb48874158a2946c76d4 (patch)
tree4863034764ccc154c1bdb5dfc545bc16291184ce /bin
parentec01d392600d3b44587dc740cd571a18f5c11b51 (diff)
downloadpatches-a81ee1fc136af28edee4eb48874158a2946c76d4.tar.gz
pkgclear: Fix glob
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkgclear2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pkgclear b/bin/pkgclear
index 7d3ecc0..320ac98 100755
--- a/bin/pkgclear
+++ b/bin/pkgclear
@@ -3,7 +3,7 @@
# pkgclear -- remove files left by patch
n=0
-fs=$(ls *.~[2-9]~ *.~[2-9][0-9]~)
+fs=$(ls *.~[2-9]~ *.~[1-9][0-9]~)
rm $fs
for f in $fs; do : $((n++)); done
echo "${0##*/}: deleted $n files" 1>&2