mirror of
https://github.com/aljazceru/omakub.git
synced 2025-12-18 04:54:21 +01:00
Fix indention
This commit is contained in:
@@ -1,45 +1,45 @@
|
||||
# Install default programming languages
|
||||
if [[ -v OMAKUB_FIRST_RUN_LANGUAGES ]]; then
|
||||
languages=$OMAKUB_FIRST_RUN_LANGUAGES
|
||||
languages=$OMAKUB_FIRST_RUN_LANGUAGES
|
||||
else
|
||||
AVAILABLE_LANGUAGES=("Ruby on Rails" "Node.js" "Go" "PHP" "Python" "Elixir" "Rust" "Java")
|
||||
languages=$(gum choose "${AVAILABLE_LANGUAGES[@]}" --no-limit --height 10 --header "Select programming languages")
|
||||
AVAILABLE_LANGUAGES=("Ruby on Rails" "Node.js" "Go" "PHP" "Python" "Elixir" "Rust" "Java")
|
||||
languages=$(gum choose "${AVAILABLE_LANGUAGES[@]}" --no-limit --height 10 --header "Select programming languages")
|
||||
fi
|
||||
|
||||
if [[ -n "$languages" ]]; then
|
||||
for language in $languages; do
|
||||
case $language in
|
||||
Ruby)
|
||||
mise x ruby -- gem install rails --no-document
|
||||
;;
|
||||
Node.js)
|
||||
mise use --global node@lts
|
||||
;;
|
||||
Go)
|
||||
mise use --global go@latest
|
||||
;;
|
||||
PHP)
|
||||
sudo add-apt-repository -y ppa:ondrej/php
|
||||
sudo apt -y install php8.4 php8.4-{curl,apcu,intl,mbstring,opcache,pgsql,mysql,sqlite3,redis,xml,zip}
|
||||
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||
php composer-setup.php --quiet && sudo mv composer.phar /usr/local/bin/composer
|
||||
rm composer-setup.php
|
||||
;;
|
||||
Python)
|
||||
mise use --global python@latest
|
||||
;;
|
||||
Elixir)
|
||||
mise use --global erlang@latest
|
||||
mise use --global elixir@latest
|
||||
mise x elixir -- mix local.hex --force
|
||||
;;
|
||||
Rust)
|
||||
bash -c "$(curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs)" -- -y
|
||||
;;
|
||||
Java)
|
||||
mise use --global java@latest
|
||||
;;
|
||||
esac
|
||||
done
|
||||
for language in $languages; do
|
||||
case $language in
|
||||
Ruby)
|
||||
mise use --global ruby@latest
|
||||
mise x ruby -- gem install rails --no-document
|
||||
;;
|
||||
Node.js)
|
||||
mise use --global node@lts
|
||||
;;
|
||||
Go)
|
||||
mise use --global go@latest
|
||||
;;
|
||||
PHP)
|
||||
sudo add-apt-repository -y ppa:ondrej/php
|
||||
sudo apt -y install php8.4 php8.4-{curl,apcu,intl,mbstring,opcache,pgsql,mysql,sqlite3,redis,xml,zip}
|
||||
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||
php composer-setup.php --quiet && sudo mv composer.phar /usr/local/bin/composer
|
||||
rm composer-setup.php
|
||||
;;
|
||||
Python)
|
||||
mise use --global python@latest
|
||||
;;
|
||||
Elixir)
|
||||
mise use --global erlang@latest
|
||||
mise use --global elixir@latest
|
||||
mise x elixir -- mix local.hex --force
|
||||
;;
|
||||
Rust)
|
||||
bash -c "$(curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs)" -- -y
|
||||
;;
|
||||
Java)
|
||||
mise use --global java@latest
|
||||
;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user