Skip to content

Commit 66486ef

Browse files
[universal/jekyll] Fix permissions for ruby version manager folder
- Change the setting up permission logic to be compatible with ruby feature
1 parent 18cefbc commit 66486ef

File tree

1 file changed

+5
-4
lines changed
  • src/universal/.devcontainer/local-features/jekyll

1 file changed

+5
-4
lines changed

src/universal/.devcontainer/local-features/jekyll/install.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ fi
1818
# If we don't already have Jekyll installed, install it now.
1919
if ! jekyll --version > /dev/null ; then
2020
echo "Installing Jekyll..."
21-
21+
22+
RUBY_VERSION_MANAGER_DIR="/usr/local/rvm/"
2223
GEMS_DIR=/usr/local/rvm/rubies/default/bin
2324
PATH=$GEMS_DIR/gem:$PATH
2425
if [ "${VERSION}" = "latest" ]; then
@@ -27,7 +28,7 @@ if ! jekyll --version > /dev/null ; then
2728
gem install jekyll -v "${VERSION}"
2829
fi
2930

30-
chown -R "${USERNAME}:rvm" "${GEMS_DIR}/"
31-
chmod -R g+r+w "${GEMS_DIR}/"
32-
find "${GEMS_DIR}" -type d | xargs -n 1 chmod g+s
31+
chown -R "${USERNAME}:rvm" "${RUBY_VERSION_MANAGER_DIR}"
32+
chmod -R g+r+w "${RUBY_VERSION_MANAGER_DIR}"
33+
find "${RUBY_VERSION_MANAGER_DIR}" -type d | xargs -n 1 chmod g+s
3334
fi

0 commit comments

Comments
 (0)