From 1291731c57ec3e47f63291107d92667679968e6b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 16 Nov 2008 11:03:50 +0100 Subject: bin/pkg: Fixed check_valid --- bin/pkg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') 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 { -- cgit v1.2.3