]> andersk Git - moira.git/blobdiff - gen/nfs.sh
Diane Delgado's changes for a fixed table-locking order
[moira.git] / gen / nfs.sh
index 9c35cf26d6ec7dee0134f8a78d19a1022eda8499..21c1899353f27940752833a6a91f29e0a0b39868 100644 (file)
@@ -31,7 +31,7 @@ chmod 755 $SRC_DIR
 # incorrect.  For now however, it is probably not worth the effort
 # to canonicalize the hostname, especially with the upcoming update
 # protocol redesign
-set uchost=`hostname | tr a-z A-Z`.MIT.EDU
+set uchost=`hostname | tr '[a-z]' '[A-Z]'`.MIT.EDU
 
 cd $SRC_DIR
 
@@ -81,9 +81,11 @@ end
 
 
 # cleanup
-  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
+if ( -f $TARFILE ) rm -f $TARFILE
+if ( -d $SRC_DIR ) then
+  cd $SRC_DIR/..
+  rm -rf $SRC_DIR
+endif
+if ( -f $0 ) rm -r $0
 
 exit 0
This page took 0.031054 seconds and 4 git commands to generate.