mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 04:22:34 +03:00
extfs helpers: remove usage of local
, instead use subshell to isolate variables
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
parent
8978b7f1d6
commit
f84099512e
@ -80,17 +80,16 @@ awk_xorriso_unesc=$(cat <<'EOF'
|
||||
EOF
|
||||
)
|
||||
|
||||
xorriso_list() {
|
||||
xorriso_list() (
|
||||
if test -z "$XORRISO"; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
local temp_ls
|
||||
temp_ls=$(mktemp "${MC_TMPDIR:-/tmp}"/mc-iso9660.XXXXXX) || return 1
|
||||
|
||||
# $XORRISO must be unquoted here to hook into the testing framework
|
||||
$XORRISO -abort_on FATAL -dev stdio:"$1" -find / -exec lsdl 2>/dev/null >"$temp_ls"
|
||||
local r=$?
|
||||
r=$?
|
||||
|
||||
if [ "$r" != 0 ]; then
|
||||
rm -f "$temp_ls"
|
||||
@ -105,7 +104,7 @@ xorriso_list() {
|
||||
@AWK@ "$awk_xorriso_unesc"
|
||||
|
||||
rm -f "$temp_ls"
|
||||
}
|
||||
)
|
||||
|
||||
xorriso_copyout() {
|
||||
if test -z "$XORRISO"; then
|
||||
@ -175,9 +174,7 @@ test_iso () {
|
||||
fi
|
||||
}
|
||||
|
||||
mcisofs_list () {
|
||||
local lsl r
|
||||
|
||||
mcisofs_list () (
|
||||
# left as a reminder to implement compressed image support =)
|
||||
case "$1" in
|
||||
*.lz) MYCAT="lzip -dc";;
|
||||
@ -227,7 +224,7 @@ BEGIN {
|
||||
if (name == "..") next;
|
||||
printf "%s%s%s\n", attr, dir, name
|
||||
}'
|
||||
}
|
||||
)
|
||||
|
||||
mcisofs_copyout () {
|
||||
if [ "x$SEMICOLON" = "xYES" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user