aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xapkg-bin8
1 files 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)"