diff options
author | Samruddhi Khandale <skhandale@microsoft.com> | 2022-06-15 00:46:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 00:46:21 +0300 |
commit | dd7e7d65b65f2f1706d18402136bcbaecbf8c897 (patch) | |
tree | 1e7575e7bd9a09cb265b10fb0343705d48a17314 /src/java/install.sh | |
parent | 423b6d55420fe66e6e0bc4c2b5df254f7881d881 (diff) |
add username:user_groupv0.0.1
Diffstat (limited to 'src/java/install.sh')
-rw-r--r-- | src/java/install.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/install.sh b/src/java/install.sh index 7918568..468d838 100644 --- a/src/java/install.sh +++ b/src/java/install.sh @@ -127,7 +127,7 @@ if [ ! -d "${SDKMAN_DIR}" ]; then umask 0002 # Install SDKMAN curl -sSL "https://get.sdkman.io?rcupdate=false" | bash - chown -R :sdkman ${SDKMAN_DIR} + chown -R "${USERNAME}:sdkman" ${SDKMAN_DIR} find ${SDKMAN_DIR} -type d | xargs -d '\n' chmod g+s # Add sourcing of sdkman into bashrc/zshrc files (unless disabled) updaterc "export SDKMAN_DIR=${SDKMAN_DIR}\n. \${SDKMAN_DIR}/bin/sdkman-init.sh" |