Skip to content

Commit

Permalink
Avoid unnecessary questions
Browse files Browse the repository at this point in the history
  • Loading branch information
almirsarajcic committed Sep 18, 2024
1 parent 8cfb6dc commit f9bf4ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions priv/static/Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ already_installed() {
install() {
case "$1" in
"Elixir")
mise use -g elixir@$elixir_version
mise use -g -y elixir@$elixir_version
;;
"Erlang")
if [ ! -f ~/.kerlrc ]; then
printf "KERL_CONFIGURE_OPTIONS=\"--without-javac\"\n" >~/.kerlrc
fi
mise use -g erlang@$erlang_version
mise use -g -y erlang@$erlang_version
;;
"mise")
curl https://mise.run | sh
Expand All @@ -100,7 +100,7 @@ install() {
"PostgreSQL")
sudo apt-get update
sudo apt-get -y install linux-headers-generic build-essential libssl-dev libreadline-dev zlib1g-dev libcurl4-openssl-dev uuid-dev icu-devtools
mise use -g postgres@$postgres_version
mise use -g -y postgres@$postgres_version
;;
*)
printf "Invalid name argument on install: %s\n" "$1"
Expand Down
6 changes: 3 additions & 3 deletions priv/static/macOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ already_installed() {
install() {
case "$1" in
"Elixir")
mise use -g elixir@$elixir_version
mise use -g -y elixir@$elixir_version
;;
"Erlang")
brew install autoconf [email protected] wxwidgets libxslt fop
if [ ! -f ~/.kerlrc ]; then
printf "KERL_CONFIGURE_OPTIONS=\"--with-ssl=$(brew --prefix [email protected]) --without-javac\"\n" >~/.kerlrc
fi
mise use -g erlang@$erlang_version
mise use -g -y erlang@$erlang_version
;;
"mise")
curl https://mise.run | sh
Expand All @@ -106,7 +106,7 @@ install() {
;;
"PostgreSQL")
brew install gcc readline zlib curl ossp-uuid
mise use -g postgres@$postgres_version
mise use -g -y postgres@$postgres_version
;;
"Xcode Command Line Tools")
xcode-select --install
Expand Down

0 comments on commit f9bf4ab

Please sign in to comment.