From deac57554eb47ffba99b436d82cd890aa472fc4f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 9 Apr 2009 12:14:54 +0200 Subject: pkg: shortened check_valid function --- bin/pkg | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/pkg b/bin/pkg index 69c5b0b..71d7eb7 100755 --- a/bin/pkg +++ b/bin/pkg @@ -61,9 +61,7 @@ function check_installed { } function check_valid { - if ! list_exists $1; then - die "No such package: '$1'\n" - fi + list_exists $1 || die "No such package: '$1'\n" } function clear_line { -- cgit v1.2.3