summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/pkg3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/pkg b/bin/pkg
index cc07702..0a08f9a 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -165,7 +165,7 @@ function vcs_to_list {
echo -n "$1 git "
echo ${$(git --git-dir=$1/.git log -n 1)[2]}
} else {
- warn "Unsupported or no repository: $1\n"
+ warn "No git repository found: $1\n"
}
}
@@ -475,6 +475,7 @@ function pkg_add {
info "Package '$1' is already installed!\n"
return 100
}
+ list_exists $1 || die "No such package: $1\n"
info "Retrieving package $1...\n"
cd $PDIR || return 255
vcs_add $1 || return 255