From f6f74c4e71927c629db64cd7eed95a09b25966fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Almir=20Saraj=C4=8Di=C4=87?= Date: Wed, 18 Sep 2024 23:39:58 +0200 Subject: [PATCH] Let's go --- priv/static/Linux.sh | 21 +++++++++++---------- priv/static/macOS.sh | 3 ++- test/scripts/Makefile | 2 ++ 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/priv/static/Linux.sh b/priv/static/Linux.sh index 78778d2f..2bc6b3fe 100755 --- a/priv/static/Linux.sh +++ b/priv/static/Linux.sh @@ -79,9 +79,10 @@ install() { mise use -g erlang@$erlang_version ;; "mise") - curl https://mise.run | $current_shell + curl https://mise.run | sh printf "eval \"\$(mise activate $current_shell)\"\n" >>$config_file eval "$(mise activate $current_shell)" + export PATH="$HOME/.local/bin:$PATH" ;; "Phoenix") mise exec -- mix local.hex --force @@ -120,21 +121,21 @@ add_env() { sleep 1.5 maybe_install "mise" - printf "${white}\n" - sleep 1.5 - maybe_install "Erlang" + # printf "${white}\n" + # sleep 1.5 + # maybe_install "Erlang" printf "${white}\n" sleep 1.5 maybe_install "Elixir" - printf "${white}\n" - sleep 1.5 - maybe_install "Phoenix" + # printf "${white}\n" + # sleep 1.5 + # maybe_install "Phoenix" - printf "${white}\n" - sleep 1.5 - maybe_install "PostgreSQL" + # printf "${white}\n" + # sleep 1.5 + # maybe_install "PostgreSQL" printf "${white}\n" printf "${cyan}${bold}phx.tools setup is complete!\n" diff --git a/priv/static/macOS.sh b/priv/static/macOS.sh index 545672af..1692838e 100755 --- a/priv/static/macOS.sh +++ b/priv/static/macOS.sh @@ -86,9 +86,10 @@ install() { mise use -g erlang@$erlang_version ;; "mise") - curl https://mise.run | $current_shell + curl https://mise.run | sh printf "eval \"\$(mise activate $current_shell)\"\n" >>$config_file eval "$(mise activate $current_shell)" + export PATH="$HOME/.local/bin:$PATH" ;; "Phoenix") mise exec -- mix local.hex --force diff --git a/test/scripts/Makefile b/test/scripts/Makefile index 07955134..b64f7f3f 100644 --- a/test/scripts/Makefile +++ b/test/scripts/Makefile @@ -14,6 +14,8 @@ serve: activate-mise @echo "SHELL is $(SHELL)" @echo "Current shell is $(current_shell)" echo "Current PATH: $$PATH" && \ + export PATH="$HOME/.local/bin:$PATH" && \ + echo "Current PATH: $$PATH" && \ mise which mix && \ mise --version && \ mise plugin list && \