mountcwfs: do not list current directory if no cwfs partitions are found.

This commit is contained in:
stanley lieber 2011-04-23 03:56:42 +00:00
parent d719f8946c
commit cab43022cb

View file

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