./discourse-doctor: line 320: [: ==: unary operator expected

Hi There!

If an imput is needed, but a ‘Y’ is presented that means by default the y is the answer, so entering no letter should work

319     read -p "Would you like to serve a publicly available version of this file? (Y/n)" serve
320     if [ $serve == 'Y' ]
1 Like

I know this hasn’t been processed yet, but just reconfirming issue in 3.2.0.beta4-dev.

==================== DONE! ====================
Would you like to serve a publicly available version of this file? (Y/n)
./discourse-doctor: line 320: [: ==: unary operator expected
Publicly available log not generated.

You can examine the output of this script with
LESS=-Ri less /tmp/discourse-debug.txt

proposed fix in FIX: Y/n prompt should treat "no value" as yes by Supermathie · Pull Request #759 · discourse/discourse_docker · GitHub