From 325883f817a4a5f6d315acb6b2fe2ac553f69f8a Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 19 May 2024 21:04:12 +0200 Subject: [PATCH] Update install-software script --- bin/install-software | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/bin/install-software b/bin/install-software index 5663fac7..83895f3c 100755 --- a/bin/install-software +++ b/bin/install-software @@ -27,19 +27,18 @@ case "$ID" in curl -s "https://get.sdkman.io" | bash export SDKMAN_DIR="$HOME/.sdkman" [[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh" - sdk install java 22.0.1-tem - sdk install java 17.0.11-tem - sdk install java 8.0.412-tem sdk selfupdate sdk update + java_versions=( '22.0.1' '21.0.3' '17.0.11' '8.0.412' ) + for version in "${java_versions[@]}"; do + sdk install java "${version}-tem" + done + sdk default java 21.0.3-tem ;; *) echo ":: No supported distribution found." - echo " Install these packages manually:" - echo " bash ncurses nano rustup bat moar fireplace fortune-mod cowsay ytfzf yt-dlp tar zstd gzip bzip zip unrar unzip 7z ccache sccache ['ar' or 'binutils']" - echo " Then do this:" - echo " 1. Install the nightly rust toolchain and execute \"cargo install eza\"" - echo " 2. Install sdkman by executing \"curl -s 'https://get.sdkman.io|bash'\"" - echo " 3. Execute \"sdk install java 17.0.9-graal\" and \"sdk install 8.0.402-tem\"" + echo " Please create an issue and (if you want)" + echo " look into the source code and install" + echo " the packages and programs yourself." ;; esac