added support for zst in extract

This commit is contained in:
Alexander Bocken 2020-11-07 19:09:18 +01:00
parent 0e8f770a93
commit 99d5d93703
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

View File

@ -26,6 +26,7 @@ case "$archive" in
*.7z) 7z x "$toextract" ;; *.7z) 7z x "$toextract" ;;
*.xz) unxz "$toextract" ;; *.xz) unxz "$toextract" ;;
*.exe) cabextract "$toextract" ;; *.exe) cabextract "$toextract" ;;
*.zst) zstd -d "$toextract";;
*) printf "extract: '%s' - unknown archive method\\n" "$toextract" ;; *) printf "extract: '%s' - unknown archive method\\n" "$toextract" ;;
esac esac
} }