From 7e365b37e974cc234c25920ff079bd002fd0ebc9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 25 Oct 2008 20:16:49 +0200 Subject: extr is a function, so use return instead of exit --- etc/functions/extr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') 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" -- cgit v1.2.3