mountcwfs: do not list current directory if no cwfs partitions are found.
This commit is contained in:
parent
d719f8946c
commit
cab43022cb
1 changed files with 6 additions and 3 deletions
|
@ -9,6 +9,7 @@ case go
|
|||
echo
|
||||
|
||||
files=(`{ls /dev/sd*/fscache* /dev/fs/fscache* >[2]/dev/null})
|
||||
if(! ~ $#files 0)
|
||||
ls -l $files
|
||||
echo
|
||||
if(~ $#files 1)
|
||||
|
@ -20,6 +21,7 @@ case go
|
|||
export fs
|
||||
|
||||
files=(`{ls /dev/sd*/fsworm* /dev/fs/fsworm* >[2]/dev/null})
|
||||
if(! ~ $#files 0)
|
||||
ls -l $files
|
||||
echo
|
||||
if(~ $#files 1)
|
||||
|
@ -31,6 +33,7 @@ case go
|
|||
export fsworm
|
||||
|
||||
files=(`{ls /dev/sd*/other* /dev/fs/other* >[2]/dev/null})
|
||||
if(! ~ $#files 0)
|
||||
ls -l $files
|
||||
echo
|
||||
if(~ $#files 1)
|
||||
|
|
Loading…
Reference in a new issue