aboutsummaryrefslogtreecommitdiff
path: root/apkg-bin
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2025-12-07 23:11:56 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2025-12-07 23:11:56 +0800
commit8ebed7f687cf8b093aef815628671f1a15733ff5 (patch)
tree0208b10ef00a225f612b93860c72a0a492ebd519 /apkg-bin
parentbfd3420f7a507c4cacebc7ca827b436ec5f7d809 (diff)
downloadautils-8ebed7f687cf8b093aef815628671f1a15733ff5.tar.gz
autils-8ebed7f687cf8b093aef815628671f1a15733ff5.zip
fixes
Diffstat (limited to 'apkg-bin')
-rwxr-xr-xapkg-bin1
1 files changed, 1 insertions, 0 deletions
diff --git a/apkg-bin b/apkg-bin
index a5cfba7..75bac29 100755
--- a/apkg-bin
+++ b/apkg-bin
@@ -198,6 +198,7 @@ clean_pkg() {
actual_sha=$(sha256sum "$f" | awk '{print $1}')
if [ "$expected_size" != "$actual_size" ] || [ "$expected_sha" != "$actual_sha" ]; then
msg "Mismatch: $fname (removed)"
+ rm -f "$f"
fi
else
msg "Unknown package: $fname (removed)"