瀏覽代碼

Fix ShellCheck

Evgeniy Zverev 1 年之前
父節點
當前提交
210758b5cf
共有 1 個文件被更改,包括 6 次插入5 次删除
  1. 6 5
      compose/bin/create-user

+ 6 - 5
compose/bin/create-user

@@ -29,12 +29,13 @@ create_admin_user() {
 
 
 # Function to create customer account
 # Function to create customer account
 create_customer_account() {
 create_customer_account() {
-  EMAIL=${EMAIL:-"customer@example.com"}
-  PASSWORD=${PASSWORD:-"customer123QWERTY"}
-  FIRSTNAME=${FIRSTNAME:-"Customer"}
-  LASTNAME=${LASTNAME:-"Customer"}
+  EMAIL="${EMAIL:-customer@example.com}"
+  PASSWORD="${PASSWORD:-customer123QWERTY}"
+  FIRSTNAME="${FIRSTNAME:-Customer}"
+  LASTNAME="${LASTNAME:-Customer}"
+  WEBSITE="${WEBSITE:-1}"
 
 
-  bin/n98-magerun2 customer:create ${EMAIL} ${PASSWORD} ${FIRSTNAME} ${LASTNAME} ${WEBSITE}
+bin/n98-magerun2 customer:create ${EMAIL} ${PASSWORD} ${FIRSTNAME} ${LASTNAME} "${WEBSITE}"
 
 
   if [ $? -eq 0 ]; then
   if [ $? -eq 0 ]; then
       echo "Customer account created successfully."
       echo "Customer account created successfully."