summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2017-01-31 11:39:39 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2017-01-31 11:39:39 +0000
commit51ff72f7b458909071c4a42dbd25ab28ac16f3f8 (patch)
treed739cc44acc1fbddcbfa01bc6e296121fa29755b /lib
parentb310c2f150a4802d63d492cfe3dfae650ebbc41e (diff)
Update util.rb
Diffstat (limited to 'lib')
-rw-r--r--lib/byteback/util.rb2
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