From 6b33e31e0542848d3bb19b30e46185807bf0fe19 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Mon, 16 Apr 2012 11:07:43 -0400 Subject: [PATCH] fixed botched editing for builder functions. --- examples/custom_overrides/fred/build_cak0l.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 } -- 2.34.1