From f202ac80d9423ee7f86aaf2467f52ddd673ee9b1 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 21 Nov 2009 23:01:31 +0100 Subject: extract: Remove shar support --- etc/functions/extract | 6 ------ 1 file changed, 6 deletions(-) (limited to 'etc/functions/extract') diff --git a/etc/functions/extract b/etc/functions/extract index f2eeb27..a690a90 100644 --- a/etc/functions/extract +++ b/etc/functions/extract @@ -2,11 +2,6 @@ ## Extract archives ## Usage: extr -function confirm_shar { - echo -ne "\e[1;33mshar archives are shell scripts and can easily contain malicious code.\e[0m Proceed? [y/N] " - read -q -} - if [[ -f $1 ]] { case $1 in *.(tar.bz2|bz2)) tar xvjf $* ;; @@ -21,7 +16,6 @@ if [[ -f $1 ]] { *.tar) tar xvf $* ;; *.zip) unzip $1 ;; *.Z) uncompress $1 ;; - *.shar) confirm_shar && sh $1 ;; *.cpio) cpio --no-absolute-filenames -idv < $1 ;; *.lzma) unlzma $1 ;; *) echo "Unknown archive type: $1"; return 2 ;; -- cgit v1.2.3