From: Chris Koeritz Date: Mon, 16 Apr 2012 15:07:43 +0000 (-0400) Subject: fixed botched editing for builder functions. X-Git-Tag: 2.140.90~1415 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=6b33e31e0542848d3bb19b30e46185807bf0fe19;p=feisty_meow.git fixed botched editing for builder functions. --- diff --git a/examples/custom_overrides/fred/build_cak0l.sh b/examples/custom_overrides/fred/build_cak0l.sh index 53808992..c887635e 100644 --- a/examples/custom_overrides/fred/build_cak0l.sh +++ b/examples/custom_overrides/fred/build_cak0l.sh @@ -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 }