We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baff92c commit df110b2Copy full SHA for df110b2
lib/sshkit/command.rb
@@ -145,7 +145,7 @@ def should_map?
145
146
def within(&_block)
147
return yield unless options[:in]
148
- sprintf("cd #{options[:in]} && %s", yield)
+ "cd #{options[:in]} && #{yield}"
149
end
150
151
def environment_hash
@@ -172,12 +172,12 @@ def user(&_block)
172
173
def in_background(&_block)
174
return yield unless options[:run_in_background]
175
- sprintf("( nohup %s > /dev/null & )", yield)
+ "( nohup #{yield} > /dev/null & )"
176
177
178
def umask(&_block)
179
return yield unless SSHKit.config.umask
180
- sprintf("umask #{SSHKit.config.umask} && %s", yield)
+ "umask #{SSHKit.config.umask} && #{yield}"
181
182
183
def group(&_block)
0 commit comments