瀏覽代碼

fix condition syntax

lapineige 1 年之前
父節點
當前提交
9a950b6b80
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/config

+ 1 - 1
scripts/config

@@ -122,7 +122,7 @@ apply_config() {
     #=================================================
 
     # Change the password if needed
-    if [ "$encrypt" ]
+    if [ "$encrypt" = true ]
     then
         ynh_print_OFF
         test -n "$encrypt_password" || ynh_die --message="The password for encryption can't be empty if you choose to enable encryption."