lib/wyrm/cli.rb in wyrm-0.4.0 vs lib/wyrm/cli.rb in wyrm-0.4.1

- old
+ new

@@ -1,9 +1,12 @@ +require 'wyrm/module' + module Wyrm - def self.sanity_check_pbzip2 - rv = `which pbzip2` + def self.sanity_check_dcmp + bzip_cmd = Wyrm::STREAM_DCMP.split(' ').first + rv = `which #{bzip_cmd}` unless $?.exitstatus == 0 - puts "\npbzip2 not installed or not in PATH" + puts "\n#{cmd} not installed or not in PATH" exit(1) end end end