From cab43022cba5287f5e4900724d93e04f6455f2d6 Mon Sep 17 00:00:00 2001 From: stanley lieber Date: Sat, 23 Apr 2011 03:56:42 +0000 Subject: [PATCH] mountcwfs: do not list current directory if no cwfs partitions are found. --- rc/bin/inst/mountcwfs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/rc/bin/inst/mountcwfs b/rc/bin/inst/mountcwfs index 138e87c8c..f19efa57c 100644 --- a/rc/bin/inst/mountcwfs +++ b/rc/bin/inst/mountcwfs @@ -9,7 +9,8 @@ case go echo files=(`{ls /dev/sd*/fscache* /dev/fs/fscache* >[2]/dev/null}) - ls -l $files + if(! ~ $#files 0) + ls -l $files echo if(~ $#files 1) default=(-d $files) @@ -20,7 +21,8 @@ case go export fs files=(`{ls /dev/sd*/fsworm* /dev/fs/fsworm* >[2]/dev/null}) - ls -l $files + if(! ~ $#files 0) + ls -l $files echo if(~ $#files 1) default=(-d $files) @@ -31,7 +33,8 @@ case go export fsworm files=(`{ls /dev/sd*/other* /dev/fs/other* >[2]/dev/null}) - ls -l $files + if(! ~ $#files 0) + ls -l $files echo if(~ $#files 1) default=(-d $files)