Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 8055df6

Browse files
committed
Improved handling of shells
1 parent 1d8acf5 commit 8055df6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tools/konf/Dockerfile.template

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@ FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
66
ARG name
77
ARG version
88
COPY <<EOF ${prefix}/etc/profile.d/konf.sh
9-
source <(konf-go shellwrapper zsh)
9+
case "\$(basename "\${SHELL}")" in
10+
bash)
11+
source <(konf-go shellwrapper bash)
12+
;;
13+
zsh)
14+
source <(konf-go shellwrapper zsh)
15+
;;
16+
esac
1017
EOF
1118
RUN <<EOF
1219
curl --silent --location --fail "https://github.com/SimonTheLeg/konf-go/releases/download/v${version}/konf-go_${version}_linux_${alt_arch}.tar.gz" \

0 commit comments

Comments
 (0)