Skip to content

Commit e772163

Browse files
authored
[fix](script) meet error on start_fe.sh(apache#9187)
start_fe.sh: line 174: [: -eq: unary operator expected
1 parent 555cc0d commit e772163

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎bin/start_fe.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,13 @@ if [ x"$HELPER" != x"" ]; then
171171
HELPER="-helper $HELPER"
172172
fi
173173

174-
if [ ${IMAGE_TOOL} -eq 1 ]; then
174+
if [[ ${IMAGE_TOOL} -eq 1 ]]; then
175175
if [ ! -z ${IMAGE_PATH} ]; then
176176
$LIMIT $JAVA $final_java_opt org.apache.doris.PaloFe -i ${IMAGE_PATH}
177177
else
178178
echo "Internal Error. USE IMAGE_TOOL like : ./start_fe.sh --image image_path"
179179
fi
180-
elif [ ${RUN_DAEMON} -eq 1 ]; then
180+
elif [[ ${RUN_DAEMON} -eq 1 ]]; then
181181
nohup $LIMIT $JAVA $final_java_opt org.apache.doris.PaloFe ${HELPER} "$@" >> $LOG_DIR/fe.out 2>&1 < /dev/null &
182182
else
183183
export DORIS_LOG_TO_STDERR=1

0 commit comments

Comments
 (0)