diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-26 22:38:00 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-26 22:38:00 +0200 |
commit | 76f71d754a7311c9d709f3485227a444560a71b4 (patch) | |
tree | 4709aecc6ac653176af41c4df2f241c22a1f9a4d | |
parent | 6b773971fad1d4967cd0adf9548af261f970a2d2 (diff) | |
download | patches-76f71d754a7311c9d709f3485227a444560a71b4.tar.gz |
Add pkgclear script
-rwxr-xr-x | bin/pkgclear | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/pkgclear b/bin/pkgclear new file mode 100755 index 0000000..7d3ecc0 --- /dev/null +++ b/bin/pkgclear @@ -0,0 +1,9 @@ +#!/bin/sh + +# pkgclear -- remove files left by patch + +n=0 +fs=$(ls *.~[2-9]~ *.~[2-9][0-9]~) +rm $fs +for f in $fs; do : $((n++)); done +echo "${0##*/}: deleted $n files" 1>&2 |