summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-11-21 23:01:31 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-11-21 23:01:31 +0100
commitf202ac80d9423ee7f86aaf2467f52ddd673ee9b1 (patch)
treebe114b8f84fe04c2a0e3d39ad817e097ebb673c2 /etc
parent9c21013c3fb3364da45e7498a7cb454f09a80fe1 (diff)
extract: Remove shar support
Diffstat (limited to 'etc')
-rw-r--r--etc/functions/extract6
1 files changed, 0 insertions, 6 deletions
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 <file>
-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 ;;