Skip to content

Commit 2fbf335

Browse files
authored
move bash flag to set statement (#3494)
Passing bash with flags to the first argument of /usr/bin/env requires its own flag to interpret it correctly. Rather than use `env -S` to split the argument, have the script `set -e` to enable the same behavior explicitly in preinst and postinst scripts. Also set `-o pipefail` for consistency. Closes: #3492 Signed-off-by: Cole White <[email protected]>
1 parent feaa747 commit 2fbf335

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
#!/usr/bin/env bash -e
1+
#!/usr/bin/env bash
2+
set -e -o pipefail
23
<% commands.each {command -> %><%= command %><% } %>
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
#!/usr/bin/env bash -e
1+
#!/usr/bin/env bash
2+
set -e -o pipefail
23
<% commands.each {command -> %><%= command %><% } %>

0 commit comments

Comments
 (0)