./discourse-doctor: line 320: [: ==: عامل أحادي متوقع

مرحباً!

إذا كانت هناك حاجة إلى إدخال، ولكن تم تقديم حرف ‘Y’، فهذا يعني افتراضيًا أن حرف y هو الإجابة، لذا يجب أن يعمل إدخال حرف غير حرفي.

319     read -p "هل ترغب في تقديم نسخة متاحة للعامة من هذا الملف؟ (Y/n)" serve
320     if [ $serve == 'Y' ]
إعجاب واحد (1)

أعلم أنه لم تتم معالجة هذا بعد، ولكني أؤكد مجددًا المشكلة في 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

الإصلاح المقترح في FIX: Y/n prompt should treat "no value" as yes by Supermathie · Pull Request #759 · discourse/discourse_docker · GitHub