summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--zfs_monkeypatch.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/zfs_monkeypatch.rb b/zfs_monkeypatch.rb
index 34cce93..20fb7d9 100644
--- a/zfs_monkeypatch.rb
+++ b/zfs_monkeypatch.rb
@@ -8,7 +8,7 @@ class ZFS
cmd = [ZFS.zfs_path].flatten + ['create']
cmd << '-p' if opts[:parents]
cmd << '-s' if opts[:volume] and opts[:sparse]
- cmd += opts[:zfsopts].map(|el| ['-o', el]).flatten if opts[:zfsopts]
+ cmd += opts[:zfsopts].map{|el| ['-o', el]}.flatten if opts[:zfsopts]
cmd += ['-V', opts[:volume]] if opts[:volume]
cmd << name