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 0b1ff6b commit aee480c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 6 deletions.
23 changes: 20 additions & 3 deletions priv/static/Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,33 @@ function install() {
;;
"mise")
curl https://mise.run | sh
command='"$(~/.local/bin/mise activate '$current_shell')"'

previous_path=$(pwd)
cd ~

echo -e "\n\n" >>$config_file
echo 'eval '$command >>$config_file
eval "$command"

case $current_shell in
"bash" | "rbash")
echo "eval \"\$(~/.local/bin/mise activate bash)\"" >>$config_file
;;
"zsh")
echo "eval \"\$(~/.local/bin/mise activate zsh)\"" >>$config_file
;;
*)
echo "Unsupported shell: $current_shell"
exit 1
;;
esac

eval "$(~/.local/bin/mise hook-env)"

echo "--- Debug $config_file ---"
cat $config_file
echo "--- End debug $config_file ---"
echo "PATH: $PATH"

cd $previous_path
;;
"Phoenix")
mix local.hex --force
Expand Down
23 changes: 20 additions & 3 deletions priv/static/macOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,33 @@ function install() {
;;
"mise")
curl https://mise.run | sh
command='"$(~/.local/bin/mise activate '$current_shell')"'

previous_path=$(pwd)
cd ~

echo -e "\n\n" >>$config_file
echo 'eval '$command >>$config_file
eval "$command"

case $current_shell in
"bash" | "rbash")
echo "eval \"\$(~/.local/bin/mise activate bash)\"" >>$config_file
;;
"zsh")
echo "eval \"\$(~/.local/bin/mise activate zsh)\"" >>$config_file
;;
*)
echo "Unsupported shell: $current_shell"
exit 1
;;
esac

eval "$(~/.local/bin/mise hook-env)"

echo "--- Debug $config_file ---"
cat $config_file
echo "--- End debug $config_file ---"
echo "PATH: $PATH"

cd $previous_path
;;
"Phoenix")
mix local.hex --force
Expand Down

0 comments on commit aee480c

Please sign in to comment.