summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/pkg b/bin/pkg
index 43d245a..bbc31c2 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -109,10 +109,8 @@ pkg_add () {
}
pkg_remove () {
- if ([ ! -d $PDIR/$1 ]) {
- info "Package '$1' is not installed!\n"
- return 100
- }
+ [ -d $PDIR/$1 ] || die "Package '$1' is not installed!\n"
+ [ -d $PDIR/$1/.hg ] || die "Not a valid package: '$1'\n"
cd $PDIR/$1
if ([ -r priority ]) {
if ([ $(cat priority) -gt 3 ]) {