Skip to content

Commit

Permalink
Fixed issue apache#111
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Warneke committed Mar 14, 2011
1 parent f906d60 commit b4ffc7b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ extractHostName() {
# extract first part of string (before any whitespace characters)
SLAVE=$1
# Remove types and possible comments
if [[ "$SLAVE" =~ '^([0-9a-zA-Z/.-]+).*$' ]]; then
if [[ "$SLAVE" =~ ^([0-9a-zA-Z/.-]+).*$ ]]; then
SLAVE=${BASH_REMATCH[1]}
fi
# Extract the hostname from the network hierarchy
if [[ "$SLAVE" =~ '^.*/([0-9a-zA-Z.-]+)$' ]]; then
if [[ "$SLAVE" =~ ^.*/([0-9a-zA-Z.-]+)$ ]]; then
SLAVE=${BASH_REMATCH[1]}
fi

Expand Down

0 comments on commit b4ffc7b

Please sign in to comment.