From c8676eb16436f23f54ecb407b1905b169eb8dad8 Mon Sep 17 00:00:00 2001 From: emmett1 Date: Sun, 7 Sep 2025 10:51:29 +0800 Subject: updated apkg-bin --- apkg-bin | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apkg-bin b/apkg-bin index 3f15d85..4fe1985 100755 --- a/apkg-bin +++ b/apkg-bin @@ -1,9 +1,9 @@ #!/bin/sh # apkg-bin - a simple binary package manager helper script -REMOTE="{REMOTE:-https://emmett1.my/files/alice/packages}" -REPODB="REPO" -PKGDIR="/var/cache/apm" +REMOTE="${REMOTE:-https://emmett1.my/files/alice/packages}" +PKGDIR="${PKGDIR:-/var/cache/apkg-bin}" +REPODB="${REPODB:-REPO}" DBFILE="$PKGDIR/$REPODB" usage() { @@ -197,7 +197,7 @@ clean_pkg() { actual_size=$(stat -c%s "$f") actual_sha=$(sha256sum "$f" | awk '{print $1}') if [ "$expected_size" != "$actual_size" ] || [ "$expected_sha" != "$actual_sha" ]; then - msg "Mismatch: $fname (removing)" + msg "Mismatch: $fname (removed)" fi else msg "Unknown package: $fname (removed)" -- cgit v1.2.3