Skip to content

Commit

Permalink
remove newline from the output of mktemp
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamashita Yuu committed Jan 31, 2013
1 parent 8252c6f commit 746cad4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/capistrano-config.rb
Expand Up @@ -49,7 +49,7 @@ def update_one(source, target, options={})

def update_all(files={}, options={})
srcs = files.map { |src, dst| src }
tmps = files.map { capture("mktemp") }
tmps = files.map { capture("mktemp").chomp }
dsts = files.map { |src, dst| dst }
begin
srcs.zip(tmps).each do |src, tmp|
Expand All @@ -65,7 +65,7 @@ def update_all(files={}, options={})

def update_all_locally(files={}, options={})
srcs = files.map { |src, dst| src }
tmps = files.map { capture("mktemp") }
tmps = files.map { capture("mktemp").chomp }
dsts = files.map { |src, dst| dst }
begin
srcs.zip(tmps).each do |src, tmp|
Expand Down

0 comments on commit 746cad4

Please sign in to comment.