summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-11-16 11:03:50 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-11-16 11:03:50 +0100
commit1291731c57ec3e47f63291107d92667679968e6b (patch)
tree17585aa084b6bfc0bb7d5b0a8bf909894f0f9ce4 /bin/pkg
parente00ef04749a9fcaae12cbd48487d91ed7e6b1bed (diff)
bin/pkg: Fixed check_valid
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/pkg b/bin/pkg
index 45862f1..5191ea4 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -46,9 +46,9 @@ function check_installed {
}
function check_valid {
- if [[ -z $(list_exists $1) ]] {
- die "No suche package: '$1'\n"
- }
+ if ! list_exists $1; then
+ die "No such package: '$1'\n"
+ fi
}
function clear_line {