Skip to content

Commit

Permalink
Fix setup on a fresh Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
almirsarajcic committed Sep 20, 2024
1 parent d2060f4 commit 2f5936d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions priv/static/Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ already_installed() {
"Erlang")
mise which erl >/dev/null 2>&1
;;
"git")
which git >/dev/null 2>&1
;;
"mise")
which mise >/dev/null 2>&1
;;
Expand All @@ -70,14 +73,23 @@ already_installed() {
install() {
case "$1" in
"Elixir")
sudo apt-get update
sudo apt-get install -y unzip
mise use -g -y elixir@$elixir_version
;;
"Erlang")
sudo apt-get update
sudo apt-get install -y build-essential automake autoconf libssl-dev libncurses5-dev

if [ ! -f ~/.kerlrc ]; then
printf "KERL_CONFIGURE_OPTIONS=\"--without-javac\"\n" >~/.kerlrc
fi
mise use -g -y erlang@$erlang_version
;;
"git")
sudo apt-get update
sudo apt-get -y install git
;;
"mise")
curl https://mise.run | sh

Expand Down Expand Up @@ -135,6 +147,10 @@ add_env() {
kill -0 "$$" || exit
done 2>/dev/null &

printf "${white}\n"
sleep 1.5
maybe_install "git"

printf "${white}\n"
sleep 1.5
maybe_install "mise"
Expand Down

0 comments on commit 2f5936d

Please sign in to comment.