made local really local
This commit is contained in:
@@ -44,41 +44,49 @@
|
||||
# -n, --no-dir Never create a host directory
|
||||
utaz()
|
||||
{
|
||||
local _ununzip
|
||||
# shellcheck disable=SC2329
|
||||
_ununzip()
|
||||
{
|
||||
unzip -o "$1" -d "$2" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
local _untar
|
||||
# shellcheck disable=SC2329
|
||||
_untar()
|
||||
{
|
||||
tar -xf "$1" -C "$2"
|
||||
}
|
||||
|
||||
local _ungzip
|
||||
# shellcheck disable=SC2329
|
||||
_ungzip()
|
||||
{
|
||||
tar -xzf "$1" -C "$2"
|
||||
}
|
||||
|
||||
local _unbzip2
|
||||
# shellcheck disable=SC2329
|
||||
_unbzip2()
|
||||
{
|
||||
tar -xjf "$1" -C "$2"
|
||||
}
|
||||
|
||||
local _unxz
|
||||
# shellcheck disable=SC2329
|
||||
_unxz()
|
||||
{
|
||||
tar -xJf "$1" -C "$2"
|
||||
}
|
||||
|
||||
local _unlzop
|
||||
# shellcheck disable=SC2329
|
||||
_unlzop()
|
||||
{
|
||||
lzop -d "$1" -o "$2/$(basename "${1%.*}")"
|
||||
}
|
||||
|
||||
local _unlzip
|
||||
# shellcheck disable=SC2329
|
||||
_unlzip()
|
||||
{
|
||||
@@ -89,18 +97,21 @@ utaz()
|
||||
fi
|
||||
}
|
||||
|
||||
local _ununrar
|
||||
# shellcheck disable=SC2329
|
||||
_ununrar()
|
||||
{
|
||||
unrar x -o+ "$1" "$2/" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
local _ununarj
|
||||
# shellcheck disable=SC2329
|
||||
_ununarj()
|
||||
{
|
||||
unarj e "$1" "$2/" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
local _unlha
|
||||
# shellcheck disable=SC2329
|
||||
_unlha()
|
||||
{
|
||||
@@ -109,18 +120,21 @@ utaz()
|
||||
(cd "$2" && lha -x "../$1") >/dev/null 2>&1
|
||||
}
|
||||
|
||||
local _ununace
|
||||
# shellcheck disable=SC2329
|
||||
_ununace()
|
||||
{
|
||||
unace x "$1" "$2/" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
local _un7z
|
||||
# shellcheck disable=SC2329
|
||||
_un7z()
|
||||
{
|
||||
7z x "$1" -o"$2/" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
local _unzstd
|
||||
# shellcheck disable=SC2329
|
||||
_unzstd()
|
||||
{
|
||||
@@ -128,6 +142,7 @@ utaz()
|
||||
tar --zstd -xf "$1" -C "$2"
|
||||
}
|
||||
|
||||
local _uncpio
|
||||
# shellcheck disable=SC2329
|
||||
_uncpio()
|
||||
{
|
||||
@@ -135,6 +150,7 @@ utaz()
|
||||
(cd "$2" && cpio -id < "../$1") >/dev/null 2>&1
|
||||
}
|
||||
|
||||
local _uncabextract
|
||||
# shellcheck disable=SC2329
|
||||
_uncabextract()
|
||||
{
|
||||
@@ -142,6 +158,7 @@ utaz()
|
||||
cabextract "$1" -d "$2/" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
local _undeb
|
||||
# shellcheck disable=SC2329
|
||||
_undeb()
|
||||
{
|
||||
@@ -149,6 +166,7 @@ utaz()
|
||||
dpkg-deb -x "$1" "$2/" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
local _unrpm
|
||||
# shellcheck disable=SC2329
|
||||
_unrpm()
|
||||
{
|
||||
@@ -408,6 +426,7 @@ export -f utaz
|
||||
taz()
|
||||
{
|
||||
# Resolve runtime CPU count for --parallel=auto.
|
||||
local _taz_detect_cpus
|
||||
_taz_detect_cpus()
|
||||
{
|
||||
local cpus=1
|
||||
@@ -421,6 +440,7 @@ taz()
|
||||
printf "%s\n" "$cpus"
|
||||
}
|
||||
|
||||
local _doxz
|
||||
# shellcheck disable=SC2329
|
||||
_doxz()
|
||||
{
|
||||
@@ -441,6 +461,7 @@ taz()
|
||||
return $?
|
||||
}
|
||||
|
||||
local _dolz
|
||||
# shellcheck disable=SC2329
|
||||
_dolz()
|
||||
{
|
||||
@@ -468,6 +489,7 @@ taz()
|
||||
return $?
|
||||
}
|
||||
|
||||
local _dogz
|
||||
# shellcheck disable=SC2329
|
||||
_dogz()
|
||||
{
|
||||
@@ -495,6 +517,7 @@ taz()
|
||||
return $?
|
||||
}
|
||||
|
||||
local _dobz2
|
||||
# shellcheck disable=SC2329
|
||||
_dobz2()
|
||||
{
|
||||
@@ -522,6 +545,7 @@ taz()
|
||||
return $?
|
||||
}
|
||||
|
||||
local _dolzo
|
||||
# shellcheck disable=SC2329
|
||||
_dolzo()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user