Skip to content

Commit

Permalink
[FLINK-17264][scripts] Fix broken taskmanager.sh by using -ne to comp…
Browse files Browse the repository at this point in the history
…are num_lines

This closes apache#11820.
  • Loading branch information
wangyang0918 authored and tillrohrmann committed Apr 21, 2020
1 parent 99cbaa9 commit 3ae1da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flink-dist/src/main/flink-bin/bin/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ extractExecutionParams() {
local EXECUTION_PREFIX="BASH_JAVA_UTILS_EXEC_RESULT:"

local num_lines=$(echo "$execution_config" | wc -l)
if ! [[ ${num_lines} == 1 ]]; then
if [[ ${num_lines} -ne 1 ]]; then
echo "[ERROR] Unexpected result ($num_lines lines): $execution_config" 1>&2
echo "[ERROR] extractExecutionParams only accepts exactly one line as the input" 1>&2
exit 1
Expand Down

0 comments on commit 3ae1da0

Please sign in to comment.