Merge pull request #132 from rickyjon/extract-caseswitch
Clean up switch case
This commit is contained in:
commit
8f12c4f8fd
1 changed files with 2 additions and 5 deletions
|
@ -22,16 +22,13 @@ fi
|
||||||
|
|
||||||
if [ -f "$archive" ] ; then
|
if [ -f "$archive" ] ; then
|
||||||
case "$archive" in
|
case "$archive" in
|
||||||
*.tar.bz2) tar xvjf "$archive" ;;
|
*.tar.bz2|*.tar.xz|*.tbz2) tar xvjf "$archive" ;;
|
||||||
*.tar.gz) tar xvzf "$archive" ;;
|
*.tar.gz|*.tgz) tar xvzf "$archive" ;;
|
||||||
*.tar.xz) tar xvJf "$archive" ;;
|
|
||||||
*.lzma) unlzma "$archive" ;;
|
*.lzma) unlzma "$archive" ;;
|
||||||
*.bz2) bunzip2 "$archive" ;;
|
*.bz2) bunzip2 "$archive" ;;
|
||||||
*.rar) unrar x -ad "$archive" ;;
|
*.rar) unrar x -ad "$archive" ;;
|
||||||
*.gz) gunzip "$archive" ;;
|
*.gz) gunzip "$archive" ;;
|
||||||
*.tar) tar xvf "$archive" ;;
|
*.tar) tar xvf "$archive" ;;
|
||||||
*.tbz2) tar xvjf "$archive" ;;
|
|
||||||
*.tgz) tar xvzf "$archive" ;;
|
|
||||||
*.zip) unzip "$archive" ;;
|
*.zip) unzip "$archive" ;;
|
||||||
*.Z) uncompress "$archive" ;;
|
*.Z) uncompress "$archive" ;;
|
||||||
*.7z) 7z x "$archive" ;;
|
*.7z) 7z x "$archive" ;;
|
||||||
|
|
Loading…
Reference in a new issue