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 dd36aed commit 8de497c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions priv/static/Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ install() {
exit 1
fi
mkdir -p "$HOME/.local/bin"
curl -L "https://github.com/jdxcode/mise/releases/latest/download/mise-linux-$mise_arch" -o "$HOME/.local/bin/mise"
curl -fsSL "https://github.com/jdxcode/mise/releases/latest/download/mise-linux-$mise_arch" -o "$HOME/.local/bin/mise"
chmod +x "$HOME/.local/bin/mise"
printf 'eval "$(%s activate %s)"\n' "$HOME/.local/bin/mise" "$current_shell" >>"$config_file"
eval "$("$HOME/.local/bin/mise" activate "$current_shell")"
# Verify that 'mise' is installed correctly
"$HOME/.local/bin/mise" --version || {
if ! "$HOME/.local/bin/mise" --version; then
printf "Failed to execute mise. Exiting.\n"
exit 1
}
fi
eval "$("$HOME/.local/bin/mise" activate "$current_shell")"
;;
"Phoenix")
mise exec -- mix local.hex --force
Expand Down
8 changes: 4 additions & 4 deletions priv/static/macOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ install() {
exit 1
fi
mkdir -p "$HOME/.local/bin"
curl -L "https://github.com/jdxcode/mise/releases/latest/download/mise-macos-$mise_arch" -o "$HOME/.local/bin/mise"
curl -fsSL "https://github.com/jdxcode/mise/releases/latest/download/mise-macos-$mise_arch" -o "$HOME/.local/bin/mise"
chmod +x "$HOME/.local/bin/mise"
printf 'eval "$(%s activate %s)"\n' "$HOME/.local/bin/mise" "$current_shell" >>"$config_file"
eval "$("$HOME/.local/bin/mise" activate "$current_shell")"
# Verify that 'mise' is installed correctly
"$HOME/.local/bin/mise" --version || {
if ! "$HOME/.local/bin/mise" --version; then
printf "Failed to execute mise. Exiting.\n"
exit 1
}
fi
eval "$("$HOME/.local/bin/mise" activate "$current_shell")"
;;
"Phoenix")
mise exec -- mix local.hex --force
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ SHELL := $(SHELL)
current_shell := $(shell basename $(SHELL))

.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.SHELLFLAGS := -eu -c

serve:
@echo "SHELL is $(SHELL)"
Expand Down

0 comments on commit 8de497c

Please sign in to comment.