Skip to content

Commit

Permalink
match for -[s]?name, not -[s]*name.
Browse files Browse the repository at this point in the history
  • Loading branch information
mlb- committed Oct 8, 2010
1 parent 088e270 commit 85f83cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rel/overlay/bin/nitrogen
Expand Up @@ -20,7 +20,7 @@ cd $RUNNER_BASE_DIR
mkdir -p $RUNNER_LOG_DIR

# Extract the target node name from node.args
NAME_ARG=`grep -e '-[s]*name' $RUNNER_ETC_DIR/vm.args`
NAME_ARG=`grep -e '-[s]\?name' $RUNNER_ETC_DIR/vm.args`
if [ -z "$NAME_ARG" ]; then
echo "vm.args needs to have either -name or -sname parameter."
exit 1
Expand Down
2 changes: 1 addition & 1 deletion rel/overlay_dependent/bin/nitrogen
Expand Up @@ -20,7 +20,7 @@ cd $RUNNER_BASE_DIR
mkdir -p $RUNNER_LOG_DIR

# Extract the target node name from node.args
NAME_ARG=`grep -e '-[s]*name' $RUNNER_ETC_DIR/vm.args`
NAME_ARG=`grep -e '-[s]\?name' $RUNNER_ETC_DIR/vm.args`
if [ -z "$NAME_ARG" ]; then
echo "vm.args needs to have either -name or -sname parameter."
exit 1
Expand Down

0 comments on commit 85f83cc

Please sign in to comment.