diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-25 20:16:49 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-25 20:16:49 +0200 |
commit | 7e365b37e974cc234c25920ff079bd002fd0ebc9 (patch) | |
tree | 0bf24970fd867946d34606d4caf4192f23e0b993 /etc/functions | |
parent | 26142aca7401862cd541ced534ca91bb7d7304ce (diff) |
extr is a function, so use return instead of exit
Diffstat (limited to 'etc/functions')
-rw-r--r-- | etc/functions/extr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/functions/extr b/etc/functions/extr index 3b01572..2ba4d90 100644 --- a/etc/functions/extr +++ b/etc/functions/extr @@ -22,7 +22,7 @@ if [[ -f $1 ]] { *.zip) unzip $1 ;; *.Z) uncompress $1 ;; *.shar) confirm_shar && sh $1 ;; - *) echo "Unknown archive type: $1"; exit 2 ;; + *) echo "Unknown archive type: $1"; return 2 ;; esac } else { echo "Nu soch file: $1" |