Skip to content

Commit

Permalink
fix missing method '_'
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Feb 1, 2016
1 parent 57c8148 commit 9163071
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/system/src/lib/yast2/execute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ class Execute
Cheetah.default_options = { logger: Y2Logger.instance }

class << self
include Yast::I18n
# Runs arguments with respect of changed root in installation.
# @see Cheetah.run for parameters
# @raise Cheetah::ExecutionFailed
def on_target(*args)
root = "/"
root = Yast::Installation.destdir if Yast::WFM.scr_chrooted?

if args.last.is_a? Hash
if args.last.is_a? ::Hash
args.last[:chroot] = root
else
args.push(chroot: root)
Expand All @@ -62,6 +63,7 @@ def popup_error(&block)
block.call
rescue Cheetah::ExecutionFailed => e
Yast.import "Report"
textdomain "base"
Yast::Report.Error(
_(
"Execution of command \"%{command}\" failed.\n"\
Expand Down

0 comments on commit 9163071

Please sign in to comment.