lib/mkfs.rb in getch-0.3.0 vs lib/mkfs.rb in getch-0.3.3

- old
+ new

@@ -72,10 +72,14 @@ Getch::Command.new('mkswap', '-f', path) end def mkfs_ext4(path) bs = Getch::Helpers.get_bs(path) - Getch::Command.new('mkfs.ext4', '-F', '-b', bs, path) + if bs == '512' + Getch::Command.new('mkfs.ext4', '-F', path) + else + Getch::Command.new('mkfs.ext4', '-F', '-b', bs, path) + end end def mkfs_xfs(path) bs = Getch::Helpers.get_bs(path) Getch::Command.new('mkfs.xfs', '-f', '-s', "size=#{bs}", path)