Skip to content

Commit dc13500

Browse files
rmetzgerzentol
authored andcommitted
[FLINK-6181][Start scripts] Fix regex in start scripts
This closes apache#3605.
1 parent 5c44f53 commit dc13500

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flink-dist/src/main/flink-bin/bin/start-zookeeper-quorum.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ while read server ; do
3535
server=$(echo -e "${server}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') # trim
3636

3737
# match server.id=address[:port[:port]]
38-
if [[ $server =~ ^server\.([0-9]+)[[:space:]]*\=([^: \#]+) ]]; then
38+
if [[ $server =~ ^server\.([0-9]+)[[:space:]]*\=[[:space:]]*([^: \#]+) ]]; then
3939
id=${BASH_REMATCH[1]}
4040
address=${BASH_REMATCH[2]}
4141

flink-dist/src/main/flink-bin/bin/stop-zookeeper-quorum.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ while read server ; do
3535
server=$(echo -e "${server}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') # trim
3636

3737
# match server.id=address[:port[:port]]
38-
if [[ $server =~ ^server\.([0-9])+[[:space:]]*\=([^: \#]+) ]]; then
38+
if [[ $server =~ ^server\.([0-9]+)[[:space:]]*\=[[:space:]]*([^: \#]+) ]]; then
3939
id=${BASH_REMATCH[1]}
4040
server=${BASH_REMATCH[2]}
4141

0 commit comments

Comments
 (0)