|
|
@ -37,7 +37,7 @@ while (( $# > 0 )); do
|
|
|
|
success=0
|
|
|
|
success=0
|
|
|
|
file_name="${1:t}"
|
|
|
|
file_name="${1:t}"
|
|
|
|
extract_dir="${file_name:r}"
|
|
|
|
extract_dir="${file_name:r}"
|
|
|
|
case "$1" in
|
|
|
|
case "$1:l" in
|
|
|
|
(*.tar.gz|*.tgz) tar xvzf "$1" ;;
|
|
|
|
(*.tar.gz|*.tgz) tar xvzf "$1" ;;
|
|
|
|
(*.tar.bz2|*.tbz|*.tbz2) tar xvjf "$1" ;;
|
|
|
|
(*.tar.bz2|*.tbz|*.tbz2) tar xvjf "$1" ;;
|
|
|
|
(*.tar.xz|*.txz) tar --xz --help &> /dev/null \
|
|
|
|
(*.tar.xz|*.txz) tar --xz --help &> /dev/null \
|
|
|
|