fixed error handling for missing files
authorAndrew Tridgell <tridge@samba.org>
Fri, 1 Aug 2008 01:36:16 +0000 (11:36 +1000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 1 Aug 2008 01:36:16 +0000 (11:36 +1000)
base/usr/bin/sofs

index acec33fdc037d833cbb78720f19d2171d0aedb20..fa85e455273a16d75268dc8da2e99251e7f35cbb 100755 (executable)
@@ -154,7 +154,9 @@ sofs_conf_listfile() {
     filename="$1"
     echo
     echo "[$filename]"
-    [ -f "$filename" ] && cat "$filename" | sed -e "s@^@       @" 
+    if [ -f "$filename" ]; then
+       cat "$filename" | sed -e "s@^@  @"
+    fi
 }
 
 ##############################################