summaryrefslogtreecommitdiff
path: root/etc/functions/extr
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-10-25 20:16:49 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-10-25 20:16:49 +0200
commit7e365b37e974cc234c25920ff079bd002fd0ebc9 (patch)
tree0bf24970fd867946d34606d4caf4192f23e0b993 /etc/functions/extr
parent26142aca7401862cd541ced534ca91bb7d7304ce (diff)
extr is a function, so use return instead of exit
Diffstat (limited to 'etc/functions/extr')
-rw-r--r--etc/functions/extr2
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"