Merge pull request #249 from mesosphere/dcos-1301
[ADD] DCOS-1301 Error message if installation path contains whitespaces
This commit is contained in:
@@ -15,6 +15,10 @@ fi
|
||||
ARGS=( "$@" );
|
||||
|
||||
VIRTUAL_ENV_PATH=$(python -c "import os; print(os.path.realpath('"${ARGS[0]}"'))")
|
||||
if [[ $VIRTUAL_ENV_PATH =~ \ ]];
|
||||
then echo "Spaces are not permitted in the installation path. Please try again with another path.";
|
||||
exit 1;
|
||||
fi
|
||||
DCOS_URL=${ARGS[1]}
|
||||
|
||||
command -v virtualenv >/dev/null 2>&1 || { echo "Cannot find virtualenv. Aborting."; exit 1; }
|
||||
|
||||
Reference in New Issue
Block a user