Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
3cef380b
Commit
3cef380b
authored
Apr 04, 2020
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert part of #4959
To prevent infinite loop on errors; reported by @shuujii
parent
068b16a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
lib/mruby/build/command.rb
lib/mruby/build/command.rb
+2
-7
No files found.
lib/mruby/build/command.rb
View file @
3cef380b
...
@@ -36,14 +36,9 @@ module MRuby
...
@@ -36,14 +36,9 @@ module MRuby
private
private
def
_run
(
options
,
params
=
{})
def
_run
(
options
,
params
=
{})
return
sh
command
+
' '
+
(
options
%
params
)
if
NotFoundCommands
.
key?
@command
cmd_string
=
if
NotFoundCommands
.
key?
(
@command
)
command
+
' '
+
(
options
%
params
)
else
build
.
filename
(
command
)
+
' '
+
(
options
%
params
)
end
begin
begin
sh
cmd_string
sh
build
.
filename
(
command
)
+
' '
+
(
options
%
params
)
rescue
RuntimeError
rescue
RuntimeError
NotFoundCommands
[
@command
]
=
true
NotFoundCommands
[
@command
]
=
true
_run
options
,
params
_run
options
,
params
...
...
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