浏览代码

MOAR PIPEFAIL

Tianon Gravi 10 年之前
父节点
当前提交
91c373d218
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      .template-helpers/variant.sh
  2. 1 1
      hello-world/update.sh

+ 1 - 1
.template-helpers/variant.sh

@@ -1,5 +1,5 @@
 #!/bin/bash
-set -e
+set -eo pipefail
 
 repo="$1"
 if [ -z "$repo" ]; then

+ 1 - 1
hello-world/update.sh

@@ -1,5 +1,5 @@
 #!/bin/bash
-set -e
+set -eo pipefail
 
 docker pull hello-world &> /dev/null