Get.dgraph.io: error on line 115


Report a Dgraph Bug

When running the install script from get.dgraph.io, get the following error:

main: line 115: continue: only meaningful in a `for', `while', or `until' loop

What version of Dgraph are you using?

n/a

Have you tried reproducing the issue with the latest release?

n/a

What is the hardware spec (RAM, OS)?

CentOS 8

Steps to reproduce the issue (command/config used to run Dgraph).

curl -sSf https://get.dgraph.io | ACCEPT_LICENSE="y" VERSION="$DGRAPH_VERSION" bash

Expected behavior and actual result.

The script wouldn’t have errors, try to do continue in if block.

Instead during the installation, see:

main: line 115: continue: only meaningful in a `for', `while', or `until' loop

Can you check this PR?
https://github.com/dgraph-io/Install-Dgraph/pull/17

curl -sSf https://raw.githubusercontent.com/dgraph-io/Install-Dgraph/bb8c5dc75c115c49a4bae4ab4d7a4454d67d98fc/getdgraph.sh | \
ACCEPT_LICENSE="y" VERSION="$DGRAPH_VERSION" bash