Skip to content

Commit

Permalink
Merge pull request #127 from nulltask/patch-1
Browse files Browse the repository at this point in the history
Fix bug that user can not be specified
  • Loading branch information
Trung Lê authored Oct 15, 2017
2 parents fca39a4 + 7c3ccc8 commit 4d04b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleman-deploy/methods/rsync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def initialize(server_instance, options = {})

def process
# Append "@" to user if provided.
user = "#{self.user}@" if user && !user.empty?
user = "#{self.user}@" if self.user && !self.user.empty?

dest_url = "#{user}#{host}:#{path}"
flags = self.flags || '-avz'
Expand Down

0 comments on commit 4d04b55

Please sign in to comment.