File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -508,20 +508,21 @@ if [ "$available_gb" -lt "$required" ]; then
508
508
echo "executed in read-only mode. Please free up disk space to resolve this issue."
509
509
echo "----------------------------------------------------------------------------"
510
510
echo "Press ENTER to confirm."
511
- read -r
511
+ # shellcheck disable=SC2034
512
+ read -r line
512
513
fi
513
514
EOM
514
515
if [ " $need_wait_for_kibana " = true ]; then
515
516
cat >> start.sh << -'EOM '
516
517
wait_for_kibana() {
517
- local timeout ="${1:-60}"
518
+ _timeout ="${1:-60}"
518
519
echo "- Waiting for Kibana to be ready"
519
520
echo
520
- local start_time ="$(date +%s)"
521
+ _start_time ="$(date +%s)"
521
522
until curl -s -I http://localhost:5601 | grep -q 'HTTP/1.1 302 Found'; do
522
- elapsed_time="$(($(date +%s) - start_time ))"
523
- if [ "$elapsed_time" -ge "$timeout " ]; then
524
- echo "Error: Kibana timeout of ${timeout } sec"
523
+ elapsed_time="$(($(date +%s) - _start_time ))"
524
+ if [ "$elapsed_time" -ge "$_timeout " ]; then
525
+ echo "Error: Kibana timeout of ${_timeout } sec"
525
526
exit 1
526
527
fi
527
528
sleep 2
You can’t perform that action at this time.
0 commit comments