summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2017-01-31 12:13:03 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2017-01-31 12:13:03 +0000
commitb0a62a022700ef13c3860a6666c8cb021f475826 (patch)
tree0b77006f8c8724d3f759385d96eab686c6e429f5
parent1ae4d48c9e3fd43e9038f025a8414d05a4b1cc04 (diff)
parent9703376afbebf06711bf5d1e874a59f806afd0f2 (diff)
Merge branch 'master' into package-for-more-distroswq
-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