Skip to content

Commit

Permalink
Fix syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
almirsarajcic committed Sep 18, 2024
1 parent ea63ac4 commit 8c6e65c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions priv/static/Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ case "${SHELL:-}" in
;;
esac

function already_installed() {
already_installed() {
case "$1" in
"Elixir")
which elixir >/dev/null 2>&1
Expand All @@ -67,7 +67,7 @@ function already_installed() {
esac
}

function install() {
install() {
case "$1" in
"Elixir")
mise use -g elixir@$elixir_version
Expand All @@ -82,8 +82,8 @@ function install() {
curl https://mise.run | sh

# Add activation command to the user's shell config file
printf "\n# Activate mise\n" >> "$config_file"
printf 'eval "$(~/.local/bin/mise activate %s)"\n' "$current_shell" >> "$config_file"
printf "\n# Activate mise\n" >>"$config_file"
printf 'eval "$(~/.local/bin/mise activate %s)"\n' "$current_shell" >>"$config_file"

# Activate mise in the current shell session
eval "$(~/.local/bin/mise activate $current_shell)"
Expand All @@ -105,7 +105,7 @@ function install() {
esac
}

function maybe_install() {
maybe_install() {
if already_installed "$1"; then
echo "$1 is already installed. Skipping..."
else
Expand All @@ -118,7 +118,7 @@ function maybe_install() {
fi
}

function add_env() {
add_env() {
echo ""

echo -e "${white}"
Expand Down
8 changes: 4 additions & 4 deletions priv/static/macOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ case "${SHELL:-}" in
;;
esac

function already_installed() {
already_installed() {
case "$1" in
"Elixir")
which elixir >/dev/null 2>&1
Expand Down Expand Up @@ -73,7 +73,7 @@ function already_installed() {
esac
}

function install() {
install() {
case "$1" in
"Elixir")
mise use -g elixir@$elixir_version
Expand Down Expand Up @@ -117,7 +117,7 @@ function install() {
esac
}

function maybe_install() {
maybe_install() {
if already_installed "$1"; then
echo "$1 is already installed. Skipping..."
else
Expand All @@ -130,7 +130,7 @@ function maybe_install() {
fi
}

function add_env() {
add_env() {
echo ""

# echo -e "${white}"
Expand Down

0 comments on commit 8c6e65c

Please sign in to comment.