summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-09 12:14:54 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-09 12:14:54 +0200
commitdeac57554eb47ffba99b436d82cd890aa472fc4f (patch)
tree51df74bef7730b0e2c5d5b428fae5de94c3957e7
parent53737f3be026b8ae76907abc4ab1cfa2cd154f43 (diff)
pkg: shortened check_valid function
-rwxr-xr-xbin/pkg4
1 files changed, 1 insertions, 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 {