mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Exact match name, cookie (reported-by Pablo Platt)
This commit is contained in:
parent
1e342faee8
commit
3440d8183b
1 changed files with 2 additions and 2 deletions
|
@ -23,14 +23,14 @@ cd $RUNNER_BASE_DIR
|
||||||
mkdir -p $RUNNER_LOG_DIR
|
mkdir -p $RUNNER_LOG_DIR
|
||||||
|
|
||||||
# Extract the target node name from node.args
|
# Extract the target node name from node.args
|
||||||
NAME_ARG=`grep -e '-[s]*name' $RUNNER_ETC_DIR/vm.args`
|
NAME_ARG=`egrep -e '^-s?name' $RUNNER_ETC_DIR/vm.args`
|
||||||
if [ -z "$NAME_ARG" ]; then
|
if [ -z "$NAME_ARG" ]; then
|
||||||
echo "vm.args needs to have either -name or -sname parameter."
|
echo "vm.args needs to have either -name or -sname parameter."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Extract the target cookie
|
# Extract the target cookie
|
||||||
COOKIE_ARG=`grep -e '-setcookie' $RUNNER_ETC_DIR/vm.args`
|
COOKIE_ARG=`grep -e '^-setcookie' $RUNNER_ETC_DIR/vm.args`
|
||||||
if [ -z "$COOKIE_ARG" ]; then
|
if [ -z "$COOKIE_ARG" ]; then
|
||||||
echo "vm.args needs to have a -setcookie parameter."
|
echo "vm.args needs to have a -setcookie parameter."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue