From ac99b3b483a68b5bf8678d9967dc362a85080423 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Fri, 28 Mar 2014 17:59:59 -0400 Subject: [PATCH] fixing cases where paths with spaces are a problem. --- scripts/buildor/build_xsedes.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.34.1