aboutsummaryrefslogtreecommitdiff
path: root/src/java
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-06-15 19:53:43 +0300
committerGitHub <noreply@github.com>2022-06-15 19:53:43 +0300
commit0ed472aa25bd1a21acf431cbb85b7528ff0cf10a (patch)
tree7a7a2bb78f979fc62e79814250fb7e5a31426ee9 /src/java
parentbc30428c914785479148f999114494a6a1f603d0 (diff)
Fix permissions: add username:user_group (#50)
* add username:user_group * fix remaining permissions * add * * remove *
Diffstat (limited to 'src/java')
-rw-r--r--src/java/install.sh2
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"