aboutsummaryrefslogtreecommitdiffstats
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
parent0d1561b27b96781117323d7ca6568795088e55f0 (diff)
downloadhyperterm-421c805210b0dcfd3f49521f4ac4f43db80be106.tar.lz
hyperterm-421c805210b0dcfd3f49521f4ac4f43db80be106.tar.xz
hyperterm-421c805210b0dcfd3f49521f4ac4f43db80be106.zip
compress: standard commands
-rw-r--r--hyperterm/hyperterm.sha5122
-rw-r--r--hyperterm/tools/compress.sh18
2 files changed, 10 insertions, 10 deletions
diff --git a/hyperterm/hyperterm.sha512 b/hyperterm/hyperterm.sha512
index c88bc9b..19ae062 100644
--- a/hyperterm/hyperterm.sha512
+++ b/hyperterm/hyperterm.sha512
@@ -7,7 +7,7 @@ d02b066e31cd063596fa18e47fd1d5c1f1a19b96c08285b96c1991eb95ff52e9e5096e529540222b
24ee7d176c3ee9e7080e1cc87d02f709d95bfcaad098843ff2d7de5168f8c7559a5ac79fd0da2ce81233ecbcf0b4b776aa60b6603020698482f45b080289fc4c ./tools/aliases.sh
ee1d6d1f9b010318985f7154c2a9173c8f2ab6b637cd3c8d2a9b403e83470e15a273dcff326a84f035660807d7cfcf04efe5abc0495e25ae7339b8807899cf0d ./tools/listuser.sh
f70697086f001f690f9dc687d97a9a000f0a96ee6cd0b6ac33c407ffb467064d2ce2780852c5d980f2503d9e375487f34ab1b9e81c1d536f367e1914a0c5d399 ./tools/sysinfo.sh
-1d26185a78a0a779af61cdf816f0644bbd328588800ead4dcf5475b0750704fd01755edcf12048791d23cb94afae8512ef587135ff049b84c5a5c0eb0d2209a6 ./tools/compress.sh
+f760432c3d76befad30588299eb2d1412d77b22fd850ffbd840c72123885d4e916a7e0b16e7048c5dcd6e58fa3bc0807cda18ae64045a7495684ba37109e4b4a ./tools/compress.sh
fab9d339a99c7d2e1809d1c44f533523c6bfcdcc8d63c62b335ce7d4c666c8bdd7ac319316bf71f043163a3a0184e25ecfe1ee32724627424d042a05fa80ce77 ./tools/vconverter.sh
579852abd8378d754fcaccb903c1fefcd4020a578ba63fb3687a08027a937fbbd18e8a1ac22b448edc14445e088134e1e909ae2f3bfea8702df8abf56000daa0 ./tools/ruby.sh
455838836f6cee00e8e2c3d255b47f1126f4a926b791297a3b9f580d1447411354951d9fa4bffc3968cbcf6566f4026b43d591d0514c9516b685b4b5a6a05d68 ./tools/network.sh
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" ;;