diff --git a/priv/static/Linux.sh b/priv/static/Linux.sh index 0601cd94..564fa2ad 100755 --- a/priv/static/Linux.sh +++ b/priv/static/Linux.sh @@ -76,8 +76,9 @@ function install() { ;; "mise") curl https://mise.run | sh - echo "\n\neval \"\$(~/.local/bin/mise activate $current_shell)\"" >>$config_file - eval "$(~/.local/bin/mise activate $current_shell)" + command='"$(~/.local/bin/mise activate '$current_shell')"' + echo -e "\n\neval$command" >>$config_file + eval "$command" eval "$(~/.local/bin/mise hook-env)" echo "--- Debug $config_file ---" diff --git a/priv/static/macOS.sh b/priv/static/macOS.sh index 8e4b2efe..27101606 100755 --- a/priv/static/macOS.sh +++ b/priv/static/macOS.sh @@ -84,8 +84,9 @@ function install() { ;; "mise") curl https://mise.run | sh - echo "\n\neval \"\$(~/.local/bin/mise activate $current_shell)\"" >>$config_file - eval "$(~/.local/bin/mise activate $current_shell)" + command='"$(~/.local/bin/mise activate '$current_shell')"' + echo -e "\n\neval$command" >>$config_file + eval "$command" eval "$(~/.local/bin/mise hook-env)" echo "--- Debug $config_file ---" diff --git a/test/scripts/Makefile b/test/scripts/Makefile index 23e7d2a7..7ac2bd1d 100644 --- a/test/scripts/Makefile +++ b/test/scripts/Makefile @@ -4,6 +4,7 @@ SHELL := $(shell echo $$SHELL) .SHELLFLAGS := -eu -c serve: + eval "$(~/.local/bin/mise hook-env)" initdb -D ~/pgdata -U postgres pg_ctl start -D ~/pgdata mix phx.new --no-install phx_tools_test