[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] use "set -o pipefail" for shell scripts



Signed-off-by: Ansgar Burchardt <ansgar@debian.org>
---
 config/backports/cron.daily           |    1 +
 config/backports/cron.dinstall        |    1 +
 config/backports/cron.hourly          |    1 +
 config/backports/cron.monthly         |    1 +
 config/backports/cron.reboot          |    1 +
 config/backports/cron.unchecked       |    1 +
 config/backports/cron.weekly          |    1 +
 config/debian-security/cron.buildd    |    1 +
 config/debian-security/cron.daily     |    1 +
 config/debian-security/cron.hourly    |    1 +
 config/debian-security/cron.unchecked |    1 +
 config/debian-security/cron.weekly    |    1 +
 config/debian/cron.daily              |    1 +
 config/debian/cron.dinstall           |    1 +
 config/debian/cron.hourly             |    1 +
 config/debian/cron.monthly            |    1 +
 config/debian/cron.reboot             |    1 +
 config/debian/cron.unchecked          |    1 +
 config/debian/cron.weekly             |    1 +
 19 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/config/backports/cron.daily b/config/backports/cron.daily
index 23f2f66..d577524 100755
--- a/config/backports/cron.daily
+++ b/config/backports/cron.daily
@@ -2,6 +2,7 @@
 #
 
 set -e
+set -o pipefail
 set -u
 
 export SCRIPTVARS=/srv/backports-master.debian.org/dak/config/backports/vars
diff --git a/config/backports/cron.dinstall b/config/backports/cron.dinstall
index 2c94296..4d3bef8 100755
--- a/config/backports/cron.dinstall
+++ b/config/backports/cron.dinstall
@@ -27,6 +27,7 @@
 
 # exit on errors
 set -e
+set -o pipefail
 # make sure to only use defined variables
 set -u
 # ERR traps should be inherited from functions too. (And command
diff --git a/config/backports/cron.hourly b/config/backports/cron.hourly
index f973606..627c8b0 100755
--- a/config/backports/cron.hourly
+++ b/config/backports/cron.hourly
@@ -3,6 +3,7 @@
 # Executed hourly via cron, out of dak's crontab.
 
 set -e
+set -o pipefail
 set -u
 
 export SCRIPTVARS=/srv/backports-master.debian.org/dak/config/backports/vars
diff --git a/config/backports/cron.monthly b/config/backports/cron.monthly
index 38a57fd..34593a3 100755
--- a/config/backports/cron.monthly
+++ b/config/backports/cron.monthly
@@ -2,6 +2,7 @@
 #
 
 set -e
+set -o pipefail
 set -u
 
 export SCRIPTVARS=/srv/backports-master.debian.org/dak/config/backports/vars
diff --git a/config/backports/cron.reboot b/config/backports/cron.reboot
index a5a132e..1e2e8d9 100755
--- a/config/backports/cron.reboot
+++ b/config/backports/cron.reboot
@@ -18,6 +18,7 @@
 
 # exit on errors
 set -e
+set -o pipefail
 # make sure to only use defined variables
 set -u
 # ERR traps should be inherited from functions too. (And command
diff --git a/config/backports/cron.unchecked b/config/backports/cron.unchecked
index 423ce77..13be8d5 100755
--- a/config/backports/cron.unchecked
+++ b/config/backports/cron.unchecked
@@ -17,6 +17,7 @@
 
 # exit on errors
 set -e
+set -o pipefail
 # make sure to only use defined variables
 set -u
 # ERR traps should be inherited from functions too. (And command
diff --git a/config/backports/cron.weekly b/config/backports/cron.weekly
index 1929e10..ee57d39 100755
--- a/config/backports/cron.weekly
+++ b/config/backports/cron.weekly
@@ -2,6 +2,7 @@
 #
 
 set -e
+set -o pipefail
 set -u
 # ERR traps should be inherited from functions too. (And command
 # substitutions and subshells and whatnot, but for us the functions is
diff --git a/config/debian-security/cron.buildd b/config/debian-security/cron.buildd
index 970a232..016b1af 100755
--- a/config/debian-security/cron.buildd
+++ b/config/debian-security/cron.buildd
@@ -3,6 +3,7 @@
 # Executed after cron.unchecked
 
 set -e
+set -o pipefail
 set -u
 
 export SCRIPTVARS=/srv/security-master.debian.org/dak/config/debian-security/vars
diff --git a/config/debian-security/cron.daily b/config/debian-security/cron.daily
index 3c34d76..bfa6dd3 100755
--- a/config/debian-security/cron.daily
+++ b/config/debian-security/cron.daily
@@ -3,6 +3,7 @@
 # Executed daily via cron, out of dak's crontab.
 
 set -e
+set -o pipefail
 export SCRIPTVARS=/srv/security-master.debian.org/dak/config/debian-security/vars
 . $SCRIPTVARS
 
diff --git a/config/debian-security/cron.hourly b/config/debian-security/cron.hourly
index ddbf09f..6a69805 100755
--- a/config/debian-security/cron.hourly
+++ b/config/debian-security/cron.hourly
@@ -3,6 +3,7 @@
 # Executed hourly via cron, out of dak's crontab.
 
 set -e
+set -o pipefail
 set -u
 
 export SCRIPTVARS=/srv/security-master.debian.org/dak/config/debian-security/vars
diff --git a/config/debian-security/cron.unchecked b/config/debian-security/cron.unchecked
index d8ae453..7baf55a 100755
--- a/config/debian-security/cron.unchecked
+++ b/config/debian-security/cron.unchecked
@@ -1,6 +1,7 @@
 #! /bin/bash
 
 set -e
+set -o pipefail
 set -u
 
 export SCRIPTVARS=/srv/security-master.debian.org/dak/config/debian-security/vars
diff --git a/config/debian-security/cron.weekly b/config/debian-security/cron.weekly
index 15c9d16..8843ac1 100755
--- a/config/debian-security/cron.weekly
+++ b/config/debian-security/cron.weekly
@@ -3,6 +3,7 @@
 # Executed weekly via cron, out of dak's crontab.
 
 set -e
+set -o pipefail
 export SCRIPTVARS=/srv/security-master.debian.org/dak/config/debian-security/vars
 . $SCRIPTVARS
 
diff --git a/config/debian/cron.daily b/config/debian/cron.daily
index 172b5bb..182e103 100755
--- a/config/debian/cron.daily
+++ b/config/debian/cron.daily
@@ -3,6 +3,7 @@
 # Run daily via cron, out of dak's crontab.
 
 set -e
+set -o pipefail
 set -u
 export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
 . $SCRIPTVARS
diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall
index d2443f7..0fcf599 100755
--- a/config/debian/cron.dinstall
+++ b/config/debian/cron.dinstall
@@ -27,6 +27,7 @@
 
 # exit on errors
 set -e
+set -o pipefail
 # make sure to only use defined variables
 set -u
 # ERR traps should be inherited from functions too. (And command
diff --git a/config/debian/cron.hourly b/config/debian/cron.hourly
index 39a4d0d..2b80ffe 100755
--- a/config/debian/cron.hourly
+++ b/config/debian/cron.hourly
@@ -3,6 +3,7 @@
 # Executed hourly via cron, out of dak's crontab.
 
 set -e
+set -o pipefail
 set -u
 
 export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
diff --git a/config/debian/cron.monthly b/config/debian/cron.monthly
index 980cb6d..3ca4a81 100755
--- a/config/debian/cron.monthly
+++ b/config/debian/cron.monthly
@@ -3,6 +3,7 @@
 # Run at the beginning of the month via cron, out of dak's crontab.
 
 set -e
+set -o pipefail
 set -u
 export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
 . $SCRIPTVARS
diff --git a/config/debian/cron.reboot b/config/debian/cron.reboot
index b012973..26d507e 100755
--- a/config/debian/cron.reboot
+++ b/config/debian/cron.reboot
@@ -18,6 +18,7 @@
 
 # exit on errors
 set -e
+set -o pipefail
 # make sure to only use defined variables
 set -u
 # ERR traps should be inherited from functions too. (And command
diff --git a/config/debian/cron.unchecked b/config/debian/cron.unchecked
index a534ba0..8dc3b1f 100755
--- a/config/debian/cron.unchecked
+++ b/config/debian/cron.unchecked
@@ -18,6 +18,7 @@
 
 # exit on errors
 set -e
+set -o pipefail
 # make sure to only use defined variables
 set -u
 # ERR traps should be inherited from functions too. (And command
diff --git a/config/debian/cron.weekly b/config/debian/cron.weekly
index b75539e..52e95eb 100755
--- a/config/debian/cron.weekly
+++ b/config/debian/cron.weekly
@@ -3,6 +3,7 @@
 # Run once a week via cron, out of dak's crontab.
 
 set -e
+set -o pipefail
 set -u
 # ERR traps should be inherited from functions too. (And command
 # substitutions and subshells and whatnot, but for us the functions is
-- 
1.7.2.5



Reply to: