From: Chris Koeritz Date: Fri, 28 Mar 2014 21:59:59 +0000 (-0400) Subject: fixing cases where paths with spaces are a problem. X-Git-Tag: 2.140.90~804 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=ac99b3b483a68b5bf8678d9967dc362a85080423;p=feisty_meow.git fixing cases where paths with spaces are a problem. --- diff --git a/scripts/buildor/build_xsedes.sh b/scripts/buildor/build_xsedes.sh index 1996208e..e335651b 100644 --- a/scripts/buildor/build_xsedes.sh +++ b/scripts/buildor/build_xsedes.sh @@ -11,7 +11,7 @@ function build_xsede() echo GENII_INSTALL_DIR is not set. return 1 fi - pushd $GENII_INSTALL_DIR + pushd "$GENII_INSTALL_DIR" if [ $? -ne 0 ]; then error_sound return 1 @@ -39,7 +39,7 @@ function rebuild_xsede() echo GENII_INSTALL_DIR is not set. return 1 fi - pushd $GENII_INSTALL_DIR + pushd "$GENII_INSTALL_DIR" ant clean if [ $? -ne 0 ]; then @@ -56,7 +56,7 @@ function rebu_bootstrap() rebuild_xsede if [ $? -ne 0 ]; then echo "failed to rebuild xsede code"; return 1; fi - bash $GENII_INSTALL_DIR/xsede_tools/library/bootstrap_quick_start.sh + bash "$GENII_INSTALL_DIR/xsede_tools/library/bootstrap_quick_start.sh" if [ $? -ne 0 ]; then echo "failed to bootstrap a container." error_sound @@ -72,7 +72,7 @@ function bu_bootstrap() build_xsede if [ $? -ne 0 ]; then echo "failed to rebuild xsede code"; return 1; fi - bash $GENII_INSTALL_DIR/xsede_tools/library/bootstrap_quick_start.sh + bash "$GENII_INSTALL_DIR/xsede_tools/library/bootstrap_quick_start.sh" if [ $? -ne 0 ]; then echo "failed to bootstrap a container." error_sound @@ -88,7 +88,7 @@ function fast_install_build() build_xsede if [ $? -ne 0 ]; then echo "failed to build xsede code"; return 1; fi - bash $GENII_INSTALL_DIR/xsede_tools/tools/installer/fast_installer_build.sh $* + bash "$GENII_INSTALL_DIR/xsede_tools/tools/installer/fast_installer_build.sh" $* if [ $? -ne 0 ]; then echo "failed to bootstrap create the installer." error_sound