Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
devcontainer-features
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazydevelop-devcontainer-temp
devcontainer-features
Commits
d8581f49
Unverified
Commit
d8581f49
authored
Jun 02, 2022
by
Samruddhi Khandale
Committed by
GitHub
Jun 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Samruddhikhandale/attempt fix ruby (#38)
* add source * temp - debug * ruby: fix sourcing bug
parent
1da3b0ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
install.sh
src/ruby/install.sh
+7
-4
No files found.
src/ruby/install.sh
View file @
d8581f49
...
@@ -226,15 +226,16 @@ else
...
@@ -226,15 +226,16 @@ else
# Install rvm
# Install rvm
curl
-sSL
https://get.rvm.io | bash
-s
stable
--ignore-dotfiles
${
RVM_INSTALL_ARGS
}
--with-default-gems
=
"
${
DEFAULT_GEMS
}
"
2>&1
curl
-sSL
https://get.rvm.io | bash
-s
stable
--ignore-dotfiles
${
RVM_INSTALL_ARGS
}
--with-default-gems
=
"
${
DEFAULT_GEMS
}
"
2>&1
usermod
-aG
rvm
${
USERNAME
}
usermod
-aG
rvm
${
USERNAME
}
su
${
USERNAME
}
-c
". /usr/local/rvm/scripts/rvm && rvm fix-permissions system"
source
/usr/local/rvm/scripts/rvm
rvm fix-permissions system
rm
-rf
${
GNUPGHOME
}
rm
-rf
${
GNUPGHOME
}
fi
fi
if
[
"
${
INSTALL_RUBY_TOOLS
}
"
=
"true"
]
;
then
if
[
"
${
INSTALL_RUBY_TOOLS
}
"
=
"true"
]
;
then
# Non-root user may not have "gem" in path when script is run and no ruby version
# Non-root user may not have "gem" in path when script is run and no ruby version
# is installed by rvm, so handle this by using root's default gem in this case
# is installed by rvm, so handle this by using root's default gem in this case
ROOT_GEM
=
'$(which gem || echo "")'
ROOT_GEM
=
"
$(
which gem
||
echo
""
)
"
su
${
USERNAME
}
-c
". /usr/local/rvm/scripts/rvm &&
\"
$(
which gem
||
echo
${
ROOT_GEM
})
\"
install
${
DEFAULT_GEMS
}
"
${
ROOT_GEM
}
install
${
DEFAULT_GEMS
}
fi
fi
# VS Code server usually first in the path, so silence annoying rvm warning (that does not apply) and then source it
# VS Code server usually first in the path, so silence annoying rvm warning (that does not apply) and then source it
...
@@ -268,5 +269,7 @@ if [ ${SKIP_RBENV_RBUILD} != "true"] ; then
...
@@ -268,5 +269,7 @@ if [ ${SKIP_RBENV_RBUILD} != "true"] ; then
fi
fi
# Clean up
# Clean up
su
${
USERNAME
}
-c
". /usr/local/rvm/scripts/rvm && rvm cleanup all &&
\"
$(
which gem
||
echo
${
ROOT_GEM
})
\"
cleanup"
rvm cleanup all
${
ROOT_GEM
}
cleanup
echo
"Done!"
echo
"Done!"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment