mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
fixed some bashisms in vfs/extfs/*
This commit is contained in:
parent
8fef98a418
commit
7770bc7899
@ -16,7 +16,7 @@ ARJ="arj -+ -ja1"
|
|||||||
|
|
||||||
mcarjfs_list ()
|
mcarjfs_list ()
|
||||||
{
|
{
|
||||||
$ARJ v "$1" | @AWK@ -v uuid=${UID-0} '
|
$ARJ v "$1" | @AWK@ -v uuid=$(id -ru) '
|
||||||
{
|
{
|
||||||
if (($0 ~ /^[0-9]+\) .*/)||($0 ~ /^------------ ---------- ---------- -----/)){
|
if (($0 ~ /^[0-9]+\) .*/)||($0 ~ /^------------ ---------- ---------- -----/)){
|
||||||
if (filestr ~ /^[0-9]+\) .*/) {
|
if (filestr ~ /^[0-9]+\) .*/) {
|
||||||
|
@ -10,7 +10,7 @@ HA=ha
|
|||||||
|
|
||||||
mchafs_list ()
|
mchafs_list ()
|
||||||
{
|
{
|
||||||
$HA lf "$1" 2>/dev/null | @AWK@ -v uid=${UID-0} '
|
$HA lf "$1" 2>/dev/null | @AWK@ -v uid=$(id -ru) '
|
||||||
/^===========/ {next}
|
/^===========/ {next}
|
||||||
{
|
{
|
||||||
if ($5="%" && $8~/DIR|ASC|HSC|CPY/) {
|
if ($5="%" && $8~/DIR|ASC|HSC|CPY/) {
|
||||||
|
@ -23,7 +23,7 @@ mklink ()
|
|||||||
mczoofs_list ()
|
mczoofs_list ()
|
||||||
{
|
{
|
||||||
mklink "$1"
|
mklink "$1"
|
||||||
$ZOO lq "$ARCHIVE" | @AWK@ -v uid=${UID-0} '
|
$ZOO lq "$ARCHIVE" | @AWK@ -v uid=$(id -ru) '
|
||||||
/^[^\ ]/ { next }
|
/^[^\ ]/ { next }
|
||||||
{
|
{
|
||||||
if (NF < 8)
|
if (NF < 8)
|
||||||
|
Loading…
Reference in New Issue
Block a user