From 84af78ad8c323bab70bcdeed1d73e871884b0285 Mon Sep 17 00:00:00 2001 From: Ivan Alejandro Date: Wed, 9 Apr 2014 00:48:07 -0300 Subject: [PATCH] Ignore case in filenames. --- modules/archive/functions/lsarchive | 2 +- modules/archive/functions/unarchive | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/archive/functions/lsarchive b/modules/archive/functions/lsarchive index bac540f8..8f7f51e4 100644 --- a/modules/archive/functions/lsarchive +++ b/modules/archive/functions/lsarchive @@ -30,7 +30,7 @@ while (( $# > 0 )); do continue fi - case "$1" in + case "$1:l" in (*.tar.gz|*.tgz) tar t${verbose:+v}vzf "$1" ;; (*.tar.bz2|*.tbz|*.tbz2) tar t${verbose:+v}jf "$1" ;; (*.tar.xz|*.txz) tar --xz --help &> /dev/null \ diff --git a/modules/archive/functions/unarchive b/modules/archive/functions/unarchive index 36fe85b6..11653104 100644 --- a/modules/archive/functions/unarchive +++ b/modules/archive/functions/unarchive @@ -37,7 +37,7 @@ while (( $# > 0 )); do success=0 file_name="${1:t}" extract_dir="${file_name:r}" - case "$1" in + case "$1:l" in (*.tar.gz|*.tgz) tar xvzf "$1" ;; (*.tar.bz2|*.tbz|*.tbz2) tar xvjf "$1" ;; (*.tar.xz|*.txz) tar --xz --help &> /dev/null \