mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 14:34:21 +02:00
Remove commented code
This commit is contained in:
-4
@@ -1097,10 +1097,6 @@ function findUbuntuVersion() {
|
||||
}
|
||||
|
||||
function setupPath(rubyPrefix, ruby, toolsPath) {
|
||||
// not used, saved for future
|
||||
// const rubyPath = path.join(rubyPrefix, 'bin', 'ruby')
|
||||
// const gemUserDir = cp.execSync(`${rubyPath} -e "puts Gem.user_dir"`).toString().trim()
|
||||
|
||||
const originalPath = process.env['PATH'].split(path.delimiter)
|
||||
|
||||
let cleanPath = originalPath.filter(e => !/\bruby\b/i.test(e))
|
||||
|
||||
@@ -108,10 +108,6 @@ function findUbuntuVersion() {
|
||||
}
|
||||
|
||||
function setupPath(rubyPrefix, ruby, toolsPath) {
|
||||
// not used, saved for future
|
||||
// const rubyPath = path.join(rubyPrefix, 'bin', 'ruby')
|
||||
// const gemUserDir = cp.execSync(`${rubyPath} -e "puts Gem.user_dir"`).toString().trim()
|
||||
|
||||
const originalPath = process.env['PATH'].split(path.delimiter)
|
||||
|
||||
let cleanPath = originalPath.filter(e => !/\bruby\b/i.test(e))
|
||||
|
||||
Reference in New Issue
Block a user