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,7 +9,8 @@ case go
|
||||||
echo
|
echo
|
||||||
|
|
||||||
files=(`{ls /dev/sd*/fscache* /dev/fs/fscache* >[2]/dev/null})
|
files=(`{ls /dev/sd*/fscache* /dev/fs/fscache* >[2]/dev/null})
|
||||||
ls -l $files
|
if(! ~ $#files 0)
|
||||||
|
ls -l $files
|
||||||
echo
|
echo
|
||||||
if(~ $#files 1)
|
if(~ $#files 1)
|
||||||
default=(-d $files)
|
default=(-d $files)
|
||||||
|
@ -20,7 +21,8 @@ case go
|
||||||
export fs
|
export fs
|
||||||
|
|
||||||
files=(`{ls /dev/sd*/fsworm* /dev/fs/fsworm* >[2]/dev/null})
|
files=(`{ls /dev/sd*/fsworm* /dev/fs/fsworm* >[2]/dev/null})
|
||||||
ls -l $files
|
if(! ~ $#files 0)
|
||||||
|
ls -l $files
|
||||||
echo
|
echo
|
||||||
if(~ $#files 1)
|
if(~ $#files 1)
|
||||||
default=(-d $files)
|
default=(-d $files)
|
||||||
|
@ -31,7 +33,8 @@ case go
|
||||||
export fsworm
|
export fsworm
|
||||||
|
|
||||||
files=(`{ls /dev/sd*/other* /dev/fs/other* >[2]/dev/null})
|
files=(`{ls /dev/sd*/other* /dev/fs/other* >[2]/dev/null})
|
||||||
ls -l $files
|
if(! ~ $#files 0)
|
||||||
|
ls -l $files
|
||||||
echo
|
echo
|
||||||
if(~ $#files 1)
|
if(~ $#files 1)
|
||||||
default=(-d $files)
|
default=(-d $files)
|
||||||
|
|
Loading…
Reference in a new issue