From ddbede61547da870f6f09d9868b201d6bc279e00 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 14 Nov 2021 20:00:12 +0100 Subject: [PATCH] install fisher if not installed for fish users --- installJava.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/installJava.sh b/installJava.sh index a0fef36..0e79c0c 100644 --- a/installJava.sh +++ b/installJava.sh @@ -1,9 +1,14 @@ # Install SDKMAN curl -s "https://get.sdkman.io" | bash source "$HOME/.sdkman/bin/sdkman-init.sh" -# Adding Fish support if fish is installed (assumes that Fisher is already installed) + +# Adding Fish support if fish is installed if [ -x $HOME/.config/fish ] ; then + if [ ! -x $HOME/.config/fisher ] ; then # Install fisher if not installed + curl -sL https://git.io/fisher | fish -c 'source && fisher install jorgebucaran/fisher' + fi fish -c 'fisher install reitzig/sdkman-for-fish' fi + # Install Temurin build according with https://whichjdk.com/#adoptium-eclipse-temurin sdk install java 17.0.1-tem