darwin-rc-common-does-set-minus-u-20080522
authorDerrick Brashear <shadow@dementia.org>
Thu, 22 May 2008 22:03:16 +0000 (22:03 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 22 May 2008 22:03:16 +0000 (22:03 +0000)
LICENSE IPL10

we need to cope with an unset variable

src/afsd/afs.rc.darwin

index 40cb0ab..008f5e2 100644 (file)
@@ -11,6 +11,8 @@
 # Updated to match standard service scripts
 # Phil Holland <hollandp@umich.edu> 6/11/04
 
+PRECACHE="$AFS_PRECACHE"
+
 . /etc/rc.common
 
 #
@@ -140,7 +142,7 @@ StartService()
        fs sysname $AFS_SYSNAME
     fi
 
-    if [ -n "$AFS_PRECACHE" ] ; then
+    if [ ! -z "$PRECACHE" ] ; then
        fs precache $AFS_PRECACHE
     fi