Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quoting, safety of test, exports. #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions bin/start-scheduler.bash
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#!/bin/bash

if [ -z ${MESOS_HOME+x} ]
if [[ ${MESOS_HOME:-} ]]
then
echo "MESOS_HOME is not set. Defaulting to /usr/local"
MESOS_HOME='/usr/local'
else
echo "MESOS_HOME is set to: $MESOS_HOME"
else
echo "MESOS_HOME is not set. Defaulting to /usr/local"
export MESOS_HOME=/usr/local
fi

export MESOS_NATIVE_LIBRARY=$(find "$MESOS_HOME" -name libmesos.dylib -or -name libmesos.so | head -n1)
export MESOS_NATIVE_LIBRARY="$(find "$MESOS_HOME" -name libmesos.dylib -or -name libmesos.so | head -n1)"
echo "MESOS_NATIVE_LIBRARY set to $MESOS_NATIVE_LIBRARY"

FRAMEWORK_HOME=$(dirname $0)/../
FRAMEWORK_HOME="$(dirname $0)"/../

# Start the scheduler
java -cp $FRAMEWORK_HOME/target/mesos-getting-started-*.jar mesosphere.mesos_scala.Main $@
java -cp "$FRAMEWORK_HOME"/target/mesos-getting-started-*.jar mesosphere.mesos_scala.Main "$@"