I was installing Dgraph using curl https://get.dgraph.io -sSf | bash
, and it auto-accepted the license agreement:
By downloading Dgraph you agree to the Dgraph Community License (DCL) terms
shown above. An open source (Apache 2.0) version of Dgraph without any
DCL-licensed enterprise features is available by building from the Dgraph
source code. See the source installation instructions for more info:
https://github.com/dgraph-io/dgraph#install-from-source
main: line 61: read: `Do you agree to the terms of the Dgraph Community License? [Y/n] ': not a valid identifier
v20.07.0
Latest release version is v20.07.0.
Downloading checksum file for v20.07.0 build.
I checked get.dgraph.io, and the error is on this line:
read -pr 'Do you agree to the terms of the Dgraph Community License? [Y/n] ' response < /dev/tty
The error is that -p
flag should be next to the prompt string.
The source code for the install script is hosted here, and the error is fixed there, but it seems that the installation script on the website hasn’t been updated in a while.