diff options
| author | Daniel Friesel <derf@derf.homelinux.org> | 2008-11-16 11:03:50 +0100 |
|---|---|---|
| committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-11-16 11:03:50 +0100 |
| commit | 1291731c57ec3e47f63291107d92667679968e6b (patch) | |
| tree | 17585aa084b6bfc0bb7d5b0a8bf909894f0f9ce4 | |
| parent | e00ef04749a9fcaae12cbd48487d91ed7e6b1bed (diff) | |
bin/pkg: Fixed check_valid
| -rwxr-xr-x | bin/pkg | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 { |
