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
db430a52
Unverified
Commit
db430a52
authored
May 31, 2022
by
Samruddhi Khandale
Committed by
GitHub
May 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ruby: fix bug (#36)
* fix ruby * skip rbenv/ruby-build
parent
07da10e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
24 deletions
+27
-24
install.sh
src/ruby/install.sh
+27
-24
No files found.
src/ruby/install.sh
View file @
db430a52
...
...
@@ -192,13 +192,14 @@ fi
find_version_from_git_tags RUBY_VERSION
"https://github.com/ruby/ruby"
"tags/v"
"_"
# Just install Ruby if RVM already installed
if
[
-d
"/usr/local/rvm"
]
;
then
if
[
rvm
--version
!=
""
]
;
then
echo
"Ruby Version Manager already exists."
if
[
"
${
RUBY_VERSION
}
"
!=
"none"
]
;
then
echo
"Installing specified Ruby version."
su
${
USERNAME
}
-c
"
&&
rvm install ruby
${
RUBY_VERSION
}
"
su
${
USERNAME
}
-c
"rvm install ruby
${
RUBY_VERSION
}
"
fi
SKIP_GEM_INSTALL
=
"false"
SKIP_RBENV_RBUILD
=
"true"
else
# Install RVM
receive_gpg_keys RVM_GPG_KEYS
...
...
@@ -240,28 +241,30 @@ fi
updaterc
"if ! grep rvm_silence_path_mismatch_check_flag
\$
HOME/.rvmrc > /dev/null 2>&1; then echo 'rvm_silence_path_mismatch_check_flag=1' >>
\$
HOME/.rvmrc; fi
\n
source /usr/local/rvm/scripts/rvm > /dev/null 2>&1"
# Install rbenv/ruby-build for good measure
git clone
--depth
=
1
\
-c
core.eol
=
lf
\
-c
core.autocrlf
=
false
\
-c
fsck.zeroPaddedFilemode
=
ignore
\
-c
fetch.fsck.zeroPaddedFilemode
=
ignore
\
-c
receive.fsck.zeroPaddedFilemode
=
ignore
\
https://github.com/rbenv/rbenv.git /usr/local/share/rbenv
ln
-s
/usr/local/share/rbenv/bin/rbenv /usr/local/bin
updaterc
'eval "$(rbenv init -)"'
git clone
--depth
=
1
\
-c
core.eol
=
lf
\
-c
core.autocrlf
=
false
\
-c
fsck.zeroPaddedFilemode
=
ignore
\
-c
fetch.fsck.zeroPaddedFilemode
=
ignore
\
-c
receive.fsck.zeroPaddedFilemode
=
ignore
\
https://github.com/rbenv/ruby-build.git /usr/local/share/ruby-build
mkdir
-p
/root/.rbenv/plugins
ln
-s
/usr/local/share/ruby-build /root/.rbenv/plugins/ruby-build
if
[
"
${
USERNAME
}
"
!=
"root"
]
;
then
mkdir
-p
/home/
${
USERNAME
}
/.rbenv/plugins
chown
-R
${
USERNAME
}
/home/
${
USERNAME
}
/.rbenv
ln
-s
/usr/local/share/ruby-build /home/
${
USERNAME
}
/.rbenv/plugins/ruby-build
if
[
${
SKIP_RBENV_RBUILD
}
!=
"true"
]
;
then
git clone
--depth
=
1
\
-c
core.eol
=
lf
\
-c
core.autocrlf
=
false
\
-c
fsck.zeroPaddedFilemode
=
ignore
\
-c
fetch.fsck.zeroPaddedFilemode
=
ignore
\
-c
receive.fsck.zeroPaddedFilemode
=
ignore
\
https://github.com/rbenv/rbenv.git /usr/local/share/rbenv
ln
-s
/usr/local/share/rbenv/bin/rbenv /usr/local/bin
updaterc
'eval "$(rbenv init -)"'
git clone
--depth
=
1
\
-c
core.eol
=
lf
\
-c
core.autocrlf
=
false
\
-c
fsck.zeroPaddedFilemode
=
ignore
\
-c
fetch.fsck.zeroPaddedFilemode
=
ignore
\
-c
receive.fsck.zeroPaddedFilemode
=
ignore
\
https://github.com/rbenv/ruby-build.git /usr/local/share/ruby-build
mkdir
-p
/root/.rbenv/plugins
ln
-s
/usr/local/share/ruby-build /root/.rbenv/plugins/ruby-build
if
[
"
${
USERNAME
}
"
!=
"root"
]
;
then
mkdir
-p
/home/
${
USERNAME
}
/.rbenv/plugins
chown
-R
${
USERNAME
}
/home/
${
USERNAME
}
/.rbenv
ln
-s
/usr/local/share/ruby-build /home/
${
USERNAME
}
/.rbenv/plugins/ruby-build
fi
fi
# Clean up
...
...
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