Remove duplicated code
This commit is contained in:
-4
@@ -1118,10 +1118,6 @@ function setupPath(rubyPrefix, ruby, toolsPath) {
|
|||||||
|
|
||||||
if (toolsPath) { newPath.push(toolsPath) }
|
if (toolsPath) { newPath.push(toolsPath) }
|
||||||
|
|
||||||
if (ruby.startsWith('rubinius')) {
|
|
||||||
newPath.push(path.join(rubyPrefix, 'gems', 'bin'))
|
|
||||||
}
|
|
||||||
|
|
||||||
core.exportVariable('PATH', [...newPath, ...cleanPath].join(path.delimiter))
|
core.exportVariable('PATH', [...newPath, ...cleanPath].join(path.delimiter))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -129,10 +129,6 @@ function setupPath(rubyPrefix, ruby, toolsPath) {
|
|||||||
|
|
||||||
if (toolsPath) { newPath.push(toolsPath) }
|
if (toolsPath) { newPath.push(toolsPath) }
|
||||||
|
|
||||||
if (ruby.startsWith('rubinius')) {
|
|
||||||
newPath.push(path.join(rubyPrefix, 'gems', 'bin'))
|
|
||||||
}
|
|
||||||
|
|
||||||
core.exportVariable('PATH', [...newPath, ...cleanPath].join(path.delimiter))
|
core.exportVariable('PATH', [...newPath, ...cleanPath].join(path.delimiter))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user