]> andersk Git - moira.git/commitdiff
*** empty log message ***
authordkk <dkk>
Thu, 15 Feb 1996 14:34:17 +0000 (14:34 +0000)
committerdkk <dkk>
Thu, 15 Feb 1996 14:34:17 +0000 (14:34 +0000)
gen/nfs.sh

index e5c11ea1d0f20e80d4967b898ea25bb3997816ba..9c35cf26d6ec7dee0134f8a78d19a1022eda8499 100644 (file)
@@ -62,6 +62,9 @@ rm -f /usr/etc/credentials.new
 cp ${uchost}.cred /usr/etc/credentials.new
 if ($status) exit $MR_NOCRED
 
+# After this point, if /tmp gets cleared out by reactivate (which
+# happens on a combined server/workstation) we don't care.
+
 mkcred /usr/etc/credentials.new
 if ($status) exit $MR_MKCRED
 
@@ -78,9 +81,9 @@ end
 
 
 # cleanup
-rm -f $TARFILE
-cd $SRC_DIR/..
-rm -rf $SRC_DIR
-rm $0
+  if [ -f $TARFILE ] ; then rm -f $TARFILE ; fi
+  if [ -d $SRC_DIR ] ; then cd $SRC_DIR/.. ; rm -rf $SRC_DIR ; fi
+  if [ -f $0 ] ; then rm -r $0 ; fi
+fi
 
 exit 0
This page took 0.109075 seconds and 5 git commands to generate.