summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/pkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pkg b/bin/pkg
index f830567..134264f 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -30,7 +30,7 @@ check_installed () {
}
check_valid () {
- [ -d $PDIR/$1/.hg ] || die "Not a valid package name: '$1'\n"
+ [ -d $PDIR/$1/.hg -o -d $PDIR/$1/.git ] || die "Not a valid package name: '$1'\n"
}
clear_line () {