From cf2d95e55aa7e95654183b32b79725f88572e559 Mon Sep 17 00:00:00 2001 From: Andrew Lee <32912555+candrewlee14@users.noreply.github.com> Date: Tue, 10 May 2022 15:01:34 -0600 Subject: [PATCH] fix bash installation --- run_once_install.sh.tmpl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/run_once_install.sh.tmpl b/run_once_install.sh.tmpl index 2ebca5a..e5a7d81 100644 --- a/run_once_install.sh.tmpl +++ b/run_once_install.sh.tmpl @@ -1,16 +1,18 @@ #!/usr/bin/env sh echo "Running installation script\n" echo "Installing bash\n" -{{- if eq .chezmoi.osRelease.id "alpine" }} +{{- if eq .chezmoi.os "linux" }} +{{- if eq .chezmoi.osRelease.id "alpine" }} apk update apk add bash -{{- else if (or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "ubuntu")) }} +{{- else if (or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "ubuntu")) }} sudo apt update sudo apt bash -y +{{- end }} {{- end }} echo "Running installations\n" -curl -sS https://webinstall.dev/webi | bash -~/.local/bin/webi bat curlie delta jq rg fd gh +# curl -sS https://webinstall.dev/webi | bash +# ~/.local/bin/webi bat curlie delta jq rg fd gh {{- if eq .chezmoi.os "linux" }} {{- if eq .chezmoi.osRelease.id "alpine" }} apk update