aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2024-05-27 01:07:55 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2024-05-27 01:07:55 +0800
commit74817cd2c7c394720e4a418b8ecf26fb1c1a7346 (patch)
treed62206ef47702be86700c5a038d1cf5c89895f3e
parent8d264397abd36ea832a907f6e88b57f89570cc56 (diff)
downloadspm-74817cd2c7c394720e4a418b8ecf26fb1c1a7346.tar.gz
spm-74817cd2c7c394720e4a418b8ecf26fb1c1a7346.zip
updated
-rwxr-xr-xspm1
1 files changed, 1 insertions, 0 deletions
diff --git a/spm b/spm
index fcc1c60..a862bea 100755
--- a/spm
+++ b/spm
@@ -221,6 +221,7 @@ cvperms() {
spm_remove() {
+ [ "$(id -u)" = 0 ] || msgerr "root required to remove package from system."
checkdbdir
needarg $1
if [ ! -s $PKGDB/$1 ]; then