فهرست منبع

Merge pull request #363 from piotrkwiecinski/fail-on-error

stop script execution on error
Mark Shust 4 سال پیش
والد
کامیت
dadb8d70c8
4فایلهای تغییر یافته به همراه4 افزوده شده و 5 حذف شده
  1. 1 0
      compose/bin/setup
  2. 1 1
      compose/bin/setup-ssl-ca
  3. 1 4
      compose/bin/start
  4. 1 0
      lib/onelinesetup

+ 1 - 0
compose/bin/setup

@@ -1,4 +1,5 @@
 #!/bin/bash
+set -o errexit
 source env/db.env
 BASE_URL=${1:-magento2.test}
 

+ 1 - 1
compose/bin/setup-ssl-ca

@@ -1,5 +1,5 @@
 #!/bin/bash
-
+set -o errexit
 # Generate a new local CA "/root/.local/share/mkcert"
 docker-compose exec -T -u root app mkcert -install
 

+ 1 - 4
compose/bin/start

@@ -1,8 +1,5 @@
 #!/bin/bash
-
-## The following lines are commented oout per https://github.com/markshust/docker-magento/issues/351
-
-<< 'COMMENTING-OUT'
+set -o errexit
 
 function parseYaml {
   local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034')

+ 1 - 0
lib/onelinesetup

@@ -1,4 +1,5 @@
 #!/bin/bash
+set -o errexit
 DOMAIN=${1:-magento2.test}
 VERSION=${2:-2.4.0}
 EDITION=${3:-community}