support .tar.zst (#903)

This commit is contained in:
MRAAGH 2021-02-23 17:43:47 +01:00 committed by GitHub
parent 219ea40fe9
commit 1692a8fe15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,7 @@ if [ -f "$archive" ] ; then
*.tar.bz2|*.tbz2) tar xvjf "$archive" ;; *.tar.bz2|*.tbz2) tar xvjf "$archive" ;;
*.tar.xz) tar -xf "$archive" ;; *.tar.xz) tar -xf "$archive" ;;
*.tar.gz|*.tgz) tar xvzf "$archive" ;; *.tar.gz|*.tgz) tar xvzf "$archive" ;;
*.tar.zst) tar -I zstd -xf "$archive" ;;
*.lzma) unlzma "$archive" ;; *.lzma) unlzma "$archive" ;;
*.bz2) bunzip2 "$archive" ;; *.bz2) bunzip2 "$archive" ;;
*.rar) unrar x -ad "$archive" ;; *.rar) unrar x -ad "$archive" ;;