We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f71d32 + 5d7ce17 commit 1435079Copy full SHA for 1435079
pkg/cidata/cidata.TEMPLATE.d/boot/01-alpine-ash-as-bash.sh
@@ -7,6 +7,9 @@
7
# cloud-init scripts can use `#!/bin/bash` and `set -o pipefail`.
8
test -f /etc/alpine-release || exit 0
9
10
+# If bash already exists, do nothing.
11
+test -x /bin/bash && exit 0
12
+
13
# Redirect bash to ash (built with CONFIG_ASH_BASH_COMPAT) and hope for the best :)
14
# It does support `set -o pipefail`, but not `[[`.
15
# /bin/bash can't be a symlink because /bin/ash is a symlink to /bin/busybox
0 commit comments