aboutsummaryrefslogtreecommitdiffstats
path: root/hyperterm/tools
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-03-20 11:25:05 +0800
committerJesús <heckyel@hyperbola.info>2022-03-20 11:25:05 +0800
commit421c805210b0dcfd3f49521f4ac4f43db80be106 (patch)
tree9e41a100596a5c598b0e2e64d7e8deaecc366091 /hyperterm/tools
parent0d1561b27b96781117323d7ca6568795088e55f0 (diff)
downloadhyperterm-421c805210b0dcfd3f49521f4ac4f43db80be106.tar.lz
hyperterm-421c805210b0dcfd3f49521f4ac4f43db80be106.tar.xz
hyperterm-421c805210b0dcfd3f49521f4ac4f43db80be106.zip
compress: standard commands
Diffstat (limited to 'hyperterm/tools')
-rw-r--r--hyperterm/tools/compress.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/hyperterm/tools/compress.sh b/hyperterm/tools/compress.sh
index bfb92b0..767d77e 100644
--- a/hyperterm/tools/compress.sh
+++ b/hyperterm/tools/compress.sh
@@ -5,18 +5,18 @@ function ex() {
if [ -f "$1" ] ; then
# shellcheck disable=SC2221,SC2222
case "$1" in
- *.tar.bz2) tar xjf "$1" ;;
- *.tar.gz) tar xzf "$1" ;;
- *.tar.xz) tar xf "$1" ;;
- *.tar.lz) tar xvf "$1" ;;
+ *.tar.bz2) tar -xjf "$1" ;;
+ *.tar.gz) tar -xzf "$1" ;;
+ *.tar.xz) tar -xf "$1" ;;
+ *.tar.lz) tar -xvf "$1" ;;
*.lz) lzip -d "$1" ;;
*.7z) 7z x "$1" ;;
*.bz2) bunzip2 "$1" ;;
*.gz) gunzip "$1" ;;
*.rar) unar "$1" ;;
- *.tar) tar xf "$1" ;;
- *.tbz2) tar xjf "$1" ;;
- *.tgz) tar xzf "$1" ;;
+ *.tar) tar -xf "$1" ;;
+ *.tbz2) tar -xjf "$1" ;;
+ *.tgz) tar -xzf "$1" ;;
*.xz) unxz "$1" ;;
*.Z) uncompress "$1" ;;
*.zip) unzip "$1" ;;
@@ -80,7 +80,7 @@ function cex() {
3) gzip --best --keep "$1" ;;
4) tar -c "$1" | bzip2 > "${1}.tar.bz2" ;;
5) tar -czvf "${1}.tar.gz" "$1" ;;
- 6) tar cJvf "${1}.tar.xz" "$1" ;;
+ 6) tar -cJvf "${1}.tar.xz" "$1" ;;
7) tar -cvf "${1}.tar.lz" --lzip "$1" ;;
8) tar -cvf "${1}.tar" "$1" ;;
9) tar -c "$1" | bzip2 > "${1}.tbz2" ;;
@@ -98,7 +98,7 @@ function cex() {
1) 7z a "${1%/}.7z" "$1" ;;
2) tar -c "$1" | bzip2 > "${1%/}.tar.bz2" ;;
3) tar -czvf "${1%/}.tar.gz" "$1" ;;
- 4) tar cJvf "${1%/}.tar.xz" "$1" ;;
+ 4) tar -cJvf "${1%/}.tar.xz" "$1" ;;
5) tar -cvf "${1%/}.tar.lz" --lzip "${1}" ;;
6) tar -cvf "${1%/}.tar" "$1" ;;
7) tar -c "$1" | bzip2 > "${1%/}.tbz2" ;;