aboutsummaryrefslogtreecommitdiff
path: root/src/java/wrapper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/wrapper.sh')
-rw-r--r--src/java/wrapper.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/java/wrapper.sh b/src/java/wrapper.sh
index d7f05de..bea343f 100644
--- a/src/java/wrapper.sh
+++ b/src/java/wrapper.sh
@@ -3,11 +3,11 @@
set -e
-JAVA_VERSION=${1:-"default"}
-SDKMAN_DIR=${2:-"/usr/local/sdkman"}
-USERNAME=${3:-"automatic"}
-UPDATE_RC=${4:-"true"}
-ADDITIONAL_JAVA_VERSION=11
+JAVA_VERSION="${1:-"default"}"
+SDKMAN_DIR="${2:-"/usr/local/sdkman"}"
+USERNAME="${USERNAME:-"${_REMOTE_USER:-"automatic"}"}"
+UPDATE_RC="${4:-"true"}"
+ADDITIONAL_JAVA_VERSION="11"
cd "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
chmod +x install.sh