fixed botched editing for builder functions.
authorChris Koeritz <fred@gruntose.com>
Mon, 16 Apr 2012 15:07:43 +0000 (11:07 -0400)
committerChris Koeritz <fred@gruntose.com>
Mon, 16 Apr 2012 15:07:43 +0000 (11:07 -0400)
examples/custom_overrides/fred/build_cak0l.sh

index 538089923027a8cee17391d4f3bfea11e14f2ed3..c887635e093cf28ac39e5beee22a002a28953103 100644 (file)
@@ -9,21 +9,23 @@ function build_cak0l()
   if [ -f runContainer.sh ]; then
     sed -e "s/-Xmx512M/-Xmx2G/" < "runContainer.sh" >"$TMP/${USER}_edited.tmp"
     mv "$TMP/${USER}_edited.tmp" "runContainer.sh" 
-    sed -e "s/-Xmx512M/-Xmx1G/" < "grid" >"$TMP/${USER}_edited.tmp"
+    chmod 755 "runContainer.sh" 
   fi
   if [ -f grid ]; then
+    sed -e "s/-Xmx512M/-Xmx1G/" < "grid" >"$TMP/${USER}_edited.tmp"
     mv "$TMP/${USER}_edited.tmp" "grid" 
-    chmod 755 "grid" "runContainer.sh" 
+    chmod 755 "grid"
     popd
   fi
   if [ -f runContainer.bat ]; then
     sed -e "s/-Xmx512M/-Xmx2G/" < "runContainer.bat" >"$TMP/${USER}_edited.tmp"
     mv "$TMP/${USER}_edited.tmp" "runContainer.bat" 
-    sed -e "s/-Xmx512M/-Xmx1G/" < "grid" >"$TMP/${USER}_edited.tmp"
+    chmod 755 "runContainer.bat" 
   fi
-  if [ -f grid ]; then
-    mv "$TMP/${USER}_edited.tmp" "grid" 
-    chmod 755 "grid" "runContainer.bat" 
+  if [ -f grid.bat ]; then
+    sed -e "s/-Xmx512M/-Xmx1G/" < "grid.bat" >"$TMP/${USER}_edited.tmp"
+    mv "$TMP/${USER}_edited.tmp" "grid.bat" 
+    chmod 755 "grid.bat"
     popd
   fi
 }