From 9ae5f36e46584f1f24c2e8fdf30d2754f92caf3e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 10 Apr 2009 22:41:28 +0200 Subject: Added tests for pkg add, extended tests for pkg list --- bin/pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/pkg b/bin/pkg index ec143b5..5c7e971 100755 --- a/bin/pkg +++ b/bin/pkg @@ -658,7 +658,7 @@ function wrap { function pkg_add { if [[ -d $PDIR/$1 ]] { info "Package '$1' is already installed!\n" - return 100 + exit 1 } list_exists $1 || die "No such package: $1\n" info "Retrieving package $1...\n" -- cgit v1.2.3