diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-09 12:14:54 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-09 12:14:54 +0200 |
commit | deac57554eb47ffba99b436d82cd890aa472fc4f (patch) | |
tree | 51df74bef7730b0e2c5d5b428fae5de94c3957e7 | |
parent | 53737f3be026b8ae76907abc4ab1cfa2cd154f43 (diff) |
pkg: shortened check_valid function
-rwxr-xr-x | bin/pkg | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 { |