Current location

narf Source control manager Git

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Mehani <shtrom@ssji.net>2020-07-03 07:41:41 +0200
committerOlivier Mehani <shtrom@ssji.net>2020-07-03 07:42:12 +0200
commitfe7020ffe89e34f57d2f8d680e727e6ef03593b6 (patch)
tree290a6a9780212bf0e3e6298daa115cfa9c6f41be
parent036cab76202aeea3b7ae841583c8bb2d48eb8b43 (diff)
[titanium-cleanup.sh] Clean more cruft more correctly
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
-rwxr-xr-xopenbsd/titanium-cleanup.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsd/titanium-cleanup.sh b/openbsd/titanium-cleanup.sh
index 602a80c..19bff18 100755
--- a/openbsd/titanium-cleanup.sh
+++ b/openbsd/titanium-cleanup.sh
@@ -18,9 +18,9 @@ PACKAGES=$(ls *.apk.*| sed s/-.*// | sort -u )
COUNT=0
for PKG in ${PACKAGES}; do
- FILES=$(ls -1tr ${PKG}-*.properties 2>/dev/null | sed 1d)
- FILES="${FILES:+${FILES} }$(ls -1tr ${PKG}-*.tar.bz2 2>/dev/null | sed 1d)"
- FILES="${FILES:+${FILES} }$(ls -1tr ${PKG}-*.apk.* 2>/dev/null | sed 1d)"
+ FILES=$(ls -1t ${PKG}-*.properties 2>/dev/null | sed 1d)
+ FILES="${FILES:+${FILES} }$(ls -1t ${PKG}-*.tar.* 2>/dev/null | sed 1d)"
+ FILES="${FILES:+${FILES} }$(ls -1t ${PKG}-*.apk.* 2>/dev/null | sed 1d)"
test -n "${FILES}" && rm ${FILES}
COUNT=$((COUNT + $(echo ${FILES} | wc -w)))
done