Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
almirsarajcic committed Sep 18, 2024
1 parent ffd2b9b commit d447270
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions priv/static/Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ case $current_shell in
;;
esac

is_ci() {
[ -n "${CI:-}" ]
}

function already_installed() {
case "$1" in
"Elixir")
Expand Down Expand Up @@ -88,18 +84,12 @@ function install() {

case $current_shell in
"bash" | "rbash")
if is_ci; then
echo "eval \"\$(~/.local/bin/mise activate bash --shims)\"" >>$config_file
fi

echo "eval \"\$(~/.local/bin/mise activate bash)\"" >>$config_file
echo "eval \"\$(~/.local/bin/mise hook-env -s bash)\"" >>$config_file
;;
"zsh")
if is_ci; then
echo "eval \"\$(~/.local/bin/mise activate zsh --shims)\"" >>$config_file
fi

echo "eval \"\$(~/.local/bin/mise activate zsh)\"" >>$config_file
echo "eval \"\$(~/.local/bin/mise hook-env -s zsh)\"" >>$config_file
;;
esac

Expand Down

0 comments on commit d447270

Please sign in to comment.