diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/mruby/build/command.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/mruby/build/command.rb b/lib/mruby/build/command.rb index 3e8b3f57c..2aa7d1851 100644 --- a/lib/mruby/build/command.rb +++ b/lib/mruby/build/command.rb @@ -36,14 +36,9 @@ module MRuby private def _run(options, params={}) - - cmd_string = if NotFoundCommands.key?(@command) - command + ' ' + ( options % params ) - else - build.filename(command) + ' ' + ( options % params ) - end + return sh command + ' ' + ( options % params ) if NotFoundCommands.key? @command begin - sh cmd_string + sh build.filename(command) + ' ' + ( options % params ) rescue RuntimeError NotFoundCommands[@command] = true _run options, params |
