1
0
Fork 0

fix startLocalCluster for darwin (#3641)

This commit is contained in:
Jan Christoph Uhde 2017-11-09 20:08:35 +01:00 committed by Frank Celler
parent b035c041b9
commit 89384dd767
2 changed files with 17 additions and 2 deletions

View File

@ -1,7 +1,15 @@
#!/bin/bash
params=("$@")
lib="$(dirname $(readlink -f ${BASH_SOURCE[0]}))/cluster-run-common.sh"
case $OSTYPE in
darwin*)
lib="$PWD/scripts/cluster-run-common.sh"
;;
*)
lib="$(dirname $(readlink -f ${BASH_SOURCE[0]}))/cluster-run-common.sh"
;;
esac
if [[ -f "$lib" ]]; then
. "$lib"
else

View File

@ -11,8 +11,15 @@ else
#if we want to restart we should probably store the parameters line wise
fi
case $OSTYPE in
darwin*)
lib="$PWD/scripts/cluster-run-common.sh"
;;
*)
lib="$(dirname $(readlink -f ${BASH_SOURCE[0]}))/cluster-run-common.sh"
;;
esac
lib="$(dirname $(readlink -f ${BASH_SOURCE[0]}))/cluster-run-common.sh"
if [[ -f "$lib" ]]; then
. "$lib"
else