Skip to content

Commit c8b797b

Browse files
fix use of run
Signed-off-by: Laurent Martin <laurent.martin.l@gmail.com>
1 parent 05098c2 commit c8b797b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

rakelib/test.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ ASPERA_DAEMON_USER = 'asperadaemon'
182182

183183
# on macOS activate sshd, restore Log folder owner and restart noded
184184
def reset_macos_hsts
185-
result = run(*%w[sudo systemsetup -getremotelogin], capture: true)
185+
result = run(*%w[sudo systemsetup -getremotelogin], mode: :capture)
186186
run(*%w[sudo systemsetup -setremotelogin on]) if result.include?('Off')
187187
run(*%w[sudo systemsetup -getremotelogin])
188188
st = File.stat(ASPERA_LOG_PATH)

rakelib/tools.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ include Paths
77
namespace :tools do
88
desc 'Show changes since latest tag'
99
task changes: [] do
10-
latest_tag = run(*%w[git describe --tags --abbrev=0], capture: true).chomp
10+
latest_tag = run(*%w[git describe --tags --abbrev=0], mode: :capture).chomp
1111
log.info("Changes since #{latest_tag}")
1212
run('git', 'log', "#{latest_tag}..HEAD", '--oneline', env: {'PAGER'=>''})
1313
end

0 commit comments

Comments
 (0)