diff options
Diffstat (limited to 'lib/byteback/util.rb')
-rw-r--r-- | lib/byteback/util.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/byteback/util.rb b/lib/byteback/util.rb index ebf5ca5..d70888b 100644 --- a/lib/byteback/util.rb +++ b/lib/byteback/util.rb @@ -69,7 +69,7 @@ module Byteback def btrfs_bin %w(/bin/btrfs /sbin/btrfs).each do |path| - return path if File.exist?(path) + return path if File.executable?(path) end raise Errno::ENOENT, 'btrfs' end |