소스 검색

stop script execution on error

Piotr Kwiecinski 4 년 전
부모
커밋
0ce707e3a0
4개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      compose/bin/setup
  2. 1 1
      compose/bin/setup-ssl-ca
  3. 1 0
      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 - 0
compose/bin/start

@@ -1,4 +1,5 @@
 #!/bin/bash
+set -o errexit
 function parseYaml {
   local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034')
   sed -ne "s|,$s\]$s\$|]|" \

+ 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}