summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-01-20 13:52:48 -0800
committerelijah <elijah@riseup.net>2013-01-20 13:52:48 -0800
commit5ec0237fbb326f5602ee6f7d1cf9ed93c9ec58c6 (patch)
treedf011afe7ae49f9064e624c49fcca6f4a42ddd4d /vendor
parentba301b0c8d77ae2f455d3a2d736968c981b8c757 (diff)
fix bug with rsync when leap command is run from other directories
Diffstat (limited to 'vendor')
-rw-r--r--vendor/supply_drop/lib/supply_drop/rsync.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/supply_drop/lib/supply_drop/rsync.rb b/vendor/supply_drop/lib/supply_drop/rsync.rb
index 732a719..a3d4898 100644
--- a/vendor/supply_drop/lib/supply_drop/rsync.rb
+++ b/vendor/supply_drop/lib/supply_drop/rsync.rb
@@ -18,11 +18,11 @@ module SupplyDrop
end
def excludes(patterns)
- [patterns].flatten.map { |p| "--exclude='#{p}'" }
+ [patterns].flatten.compact.map { |p| "--exclude='#{p}'" }
end
def includes(patterns)
- [patterns].flatten.map { |p| "--include='#{p}'" }
+ [patterns].flatten.compact.map { |p| "--include='#{p}'" }
end
def ssh_options(options)