diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-10-18 09:11:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-18 09:11:09 -0400 |
| commit | 8f12c4f8fd797e5a61a11ec57bebf163c4eda000 (patch) | |
| tree | 7b9a3335f564756577c60d72cb6c932facb69911 /.scripts | |
| parent | 52e18fcc3999104e24c129d29a6407ae01a26c68 (diff) | |
| parent | c83388886ba7fa35ffe8c2fe6d6de036e83dfe04 (diff) | |
| download | eibhear-8f12c4f8fd797e5a61a11ec57bebf163c4eda000.tar.gz eibhear-8f12c4f8fd797e5a61a11ec57bebf163c4eda000.tar.zst eibhear-8f12c4f8fd797e5a61a11ec57bebf163c4eda000.zip | |
Merge pull request #132 from rickyjon/extract-caseswitch
Clean up switch case
Diffstat (limited to '.scripts')
| -rwxr-xr-x | .scripts/extract | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/.scripts/extract b/.scripts/extract index 40f4d66..c214583 100755 --- a/.scripts/extract +++ b/.scripts/extract @@ -22,16 +22,13 @@ fi if [ -f "$archive" ] ; then case "$archive" in - *.tar.bz2) tar xvjf "$archive" ;; - *.tar.gz) tar xvzf "$archive" ;; - *.tar.xz) tar xvJf "$archive" ;; + *.tar.bz2|*.tar.xz|*.tbz2) tar xvjf "$archive" ;; + *.tar.gz|*.tgz) tar xvzf "$archive" ;; *.lzma) unlzma "$archive" ;; *.bz2) bunzip2 "$archive" ;; *.rar) unrar x -ad "$archive" ;; *.gz) gunzip "$archive" ;; *.tar) tar xvf "$archive" ;; - *.tbz2) tar xvjf "$archive" ;; - *.tgz) tar xvzf "$archive" ;; *.zip) unzip "$archive" ;; *.Z) uncompress "$archive" ;; *.7z) 7z x "$archive" ;; |
