diff --git a/containers/codespaces-linux/.devcontainer/library-scripts/gradle-debian.sh b/containers/codespaces-linux/.devcontainer/library-scripts/gradle-debian.sh index 614957b6..07314e68 100644 --- a/containers/codespaces-linux/.devcontainer/library-scripts/gradle-debian.sh +++ b/containers/codespaces-linux/.devcontainer/library-scripts/gradle-debian.sh @@ -57,6 +57,6 @@ if [ ! -d "${SDKMAN_DIR}" ]; then fi # Install gradle -su ${USERNAME} -c "source ${SDKMAN_DIR}/bin/sdkman-init.sh && sdk install gradle ${GRADLE_VERSION} && sdk flush archives && sdk flush temp" +su ${USERNAME} -c "source ${SDKMAN_DIR}/bin/sdkman-init.sh && sdk install gradle ${GRADLE_VERSION} && sdk flush archives && sdk flush temp" updaterc "export GRADLER_USER_HOME=\${HOME}/.gradle" echo "Done!" diff --git a/containers/codespaces-linux/.devcontainer/library-scripts/maven-debian.sh b/containers/codespaces-linux/.devcontainer/library-scripts/maven-debian.sh index 678d5cfa..8d154491 100644 --- a/containers/codespaces-linux/.devcontainer/library-scripts/maven-debian.sh +++ b/containers/codespaces-linux/.devcontainer/library-scripts/maven-debian.sh @@ -57,6 +57,6 @@ if [ ! -d "${SDKMAN_DIR}" ]; then fi # Install Maven -su ${USERNAME} -c "source ${SDKMAN_DIR}/bin/sdkman-init.sh && sdk install maven ${MAVEN_VERSION} && sdk flush archives && sdk flush temp" +su ${USERNAME} -c "source ${SDKMAN_DIR}/bin/sdkman-init.sh && sdk install maven ${MAVEN_VERSION} && sdk flush archives && sdk flush temp" updaterc "export M2=\$HOME/.m2" echo "Done!" \ No newline at end of file diff --git a/containers/codespaces-linux/.devcontainer/library-scripts/ruby-debian.sh b/containers/codespaces-linux/.devcontainer/library-scripts/ruby-debian.sh index 535c93bb..62d6c065 100644 --- a/containers/codespaces-linux/.devcontainer/library-scripts/ruby-debian.sh +++ b/containers/codespaces-linux/.devcontainer/library-scripts/ruby-debian.sh @@ -36,6 +36,9 @@ fi if [ -d "/usr/local/rvm" ]; then echo "Ruby Version Manager already exists. Installing specified Ruby version." su ${USERNAME} -c "source /usr/local/rvm/scripts/rvm && rvm install ${RUBY_VERSION}" + source /usr/local/rvm/scripts/rvm + rvm cleanup all + gem cleanup exit 0 fi @@ -48,11 +51,11 @@ gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703 # Install RVM curl -sSL https://get.rvm.io | bash -s "${RUBY_VERSION}" --ruby --with-default-gems="rake ruby-debug-ide debase" 2>&1 usermod -aG rvm ${USERNAME} -su ${USERNAME} -c "source /usr/local/rvm/scripts/rvm && rvm fix-permissions system" -source /usr/local/rvm/scripts/rvm -rvm cleanup all -gem cleanup +su ${USERNAME} -c "source /usr/local/rvm/scripts/rvm && rvm fix-permissions system && rvm cleanup all && gem cleanup" rm -rf ${GNUPGHOME} +source /usr/local/rvm/scripts/rvm +rvm cleanup all +gem cleanup # Add sourcing of rvm into bashrc/zshrc files (unless disabled) if [ "${UPDATE_RC}" = "true" ]; then