update ext
script (#986)
Arch & Artix already have the `libarchive` pkg, which contains `bsdtar`. So lets just use it, since its superior, faster, it also has easier syntax, and it auto-detects the compression. btw the .tar.zst was wrong anyhow, so if u wont merge this, dont forget to fix that. from the manual: ``` -I, --use-compress-program=COMMAND Filter data through COMMAND. It must accept the -d option, for decompression. The argument can contain command line options. ..... --zstd Filter the archive through zstd(1). ```
This commit is contained in:
parent
f36f2fe539
commit
0a6982f1e1
1 changed files with 5 additions and 5 deletions
|
@ -24,15 +24,15 @@ fi
|
||||||
|
|
||||||
if [ -f "$archive" ] ; then
|
if [ -f "$archive" ] ; then
|
||||||
case "$archive" in
|
case "$archive" in
|
||||||
*.tar.bz2|*.tbz2) tar xvjf "$archive" ;;
|
*.tar.bz2|*.tbz2) bsdtar -xf "$archive" ;;
|
||||||
*.tar.xz) tar -xf "$archive" ;;
|
*.tar.xz) bsdtar -xf "$archive" ;;
|
||||||
*.tar.gz|*.tgz) tar xvzf "$archive" ;;
|
*.tar.gz|*.tgz) bsdtar -xf "$archive" ;;
|
||||||
*.tar.zst) tar -I zstd -xf "$archive" ;;
|
*.tar.zst) bsdtar -xf "$archive" ;;
|
||||||
|
*.tar) bsdtar -xf "$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" ;;
|
|
||||||
*.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