summaryrefslogtreecommitdiffstats
path: root/tags/m/maintainer-script-without-set-e.tag
diff options
context:
space:
mode:
Diffstat (limited to 'tags/m/maintainer-script-without-set-e.tag')
-rw-r--r--tags/m/maintainer-script-without-set-e.tag10
1 files changed, 10 insertions, 0 deletions
diff --git a/tags/m/maintainer-script-without-set-e.tag b/tags/m/maintainer-script-without-set-e.tag
new file mode 100644
index 0000000..1bd32f6
--- /dev/null
+++ b/tags/m/maintainer-script-without-set-e.tag
@@ -0,0 +1,10 @@
+Tag: maintainer-script-without-set-e
+Severity: pedantic
+Check: scripts
+See-Also: debian-policy 10.4
+Explanation: The maintainer script passes <code>-e</code> to the shell on the
+ <code>#!</code> line rather than using <code>set -e</code> in the body of the
+ script. This is fine for normal operation, but if the script is run by
+ hand with <code>sh /path/to/script</code> (common in debugging), <code>-e</code>
+ will not be in effect. It's therefore better to use <code>set -e</code> in
+ the body of the script.