summaryrefslogtreecommitdiff
path: root/user/gitlab-runner/posix-shell.patch
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2020-06-19 22:56:22 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2020-06-19 22:56:22 +0000
commitc3ad661174e3f770b100812c6075f2ca092e9c2a (patch)
tree3dfcf540eb4c49e05d1b97de4492f9e00bec4db0 /user/gitlab-runner/posix-shell.patch
parentb39942321d371aaa6fa453bf06cb55089bbe7444 (diff)
parentc4d87ab64fb1a3a1a89e6e0cb8d4b7291e511c1d (diff)
downloadpackages-c3ad661174e3f770b100812c6075f2ca092e9c2a.tar.gz
packages-c3ad661174e3f770b100812c6075f2ca092e9c2a.tar.bz2
packages-c3ad661174e3f770b100812c6075f2ca092e9c2a.tar.xz
packages-c3ad661174e3f770b100812c6075f2ca092e9c2a.zip
Merge branch 'gitlab-runner' into 'master'
user/gitlab-runner: new package See merge request adelie/packages!467
Diffstat (limited to 'user/gitlab-runner/posix-shell.patch')
-rw-r--r--user/gitlab-runner/posix-shell.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/user/gitlab-runner/posix-shell.patch b/user/gitlab-runner/posix-shell.patch
new file mode 100644
index 000000000..6169c3ecc
--- /dev/null
+++ b/user/gitlab-runner/posix-shell.patch
@@ -0,0 +1,30 @@
+--- gitlab-runner-v12.1.0/shells/bash.go 2019-07-19 12:13:32.000000000 +0000
++++ gitlab-runner-v12.1.0/shells/bash.go 2020-04-26 23:07:57.303304498 +0000
+@@ -102,12 +102,12 @@ func (b *BashWriter) Variable(variable c
+ }
+
+ func (b *BashWriter) IfDirectory(path string) {
+- b.Line(fmt.Sprintf("if [[ -d %q ]]; then", path))
++ b.Line(fmt.Sprintf("if [ -d %q ]; then", path))
+ b.Indent()
+ }
+
+ func (b *BashWriter) IfFile(path string) {
+- b.Line(fmt.Sprintf("if [[ -e %q ]]; then", path))
++ b.Line(fmt.Sprintf("if [ -e %q ]; then", path))
+ b.Indent()
+ }
+
+@@ -200,9 +200,10 @@ func (b *BashWriter) Finish(trace bool)
+ io.WriteString(w, "set -o xtrace\n")
+ }
+
+- io.WriteString(w, "set -eo pipefail\n")
++ io.WriteString(w, "set -e\n")
+ io.WriteString(w, "set +o noclobber\n")
+- io.WriteString(w, ": | eval "+helpers.ShellEscape(b.String())+"\n")
++ io.WriteString(w, "(\nexec </dev/null\n")
++ io.WriteString(w, b.String() + "\n)\n")
+ io.WriteString(w, "exit 0\n")
+ w.Flush()
+ return buffer.String()