fixed some bashisms in vfs/extfs/*

This commit is contained in:
Enrico Weigelt, metux IT service 2009-01-12 20:58:50 +01:00
parent 8fef98a418
commit 7770bc7899
3 changed files with 3 additions and 3 deletions

View File

@ -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]+\) .*/) {

View File

@ -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/) {

View File

@ -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)