Commit 48074b9f authored by Kamil Trzciński's avatar Kamil Trzciński 🔴

Merge branch 'add_busybox_shell' into 'master'

Add busybox shell

See merge request gitlab-org/gitlab-runner!900
parents 80396350 cebd1335
Pipeline #27355621 passed with stages
in 32 minutes and 38 seconds
......@@ -4,13 +4,14 @@ import (
"bufio"
"bytes"
"fmt"
"gitlab.com/gitlab-org/gitlab-runner/common"
"gitlab.com/gitlab-org/gitlab-runner/helpers"
"io"
"path"
"runtime"
"strconv"
"strings"
"gitlab.com/gitlab-org/gitlab-runner/common"
"gitlab.com/gitlab-org/gitlab-runner/helpers"
)
const bashDetectShell = `if [ -x /usr/local/bin/bash ]; then
......@@ -25,6 +26,8 @@ elif [ -x /usr/bin/sh ]; then
exec /usr/bin/sh $@
elif [ -x /bin/sh ]; then
exec /bin/sh $@
elif [ -x /busybox/sh ]; then
exec /busybox/sh $@
else
echo shell not found
exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment