From 51ff72f7b458909071c4a42dbd25ab28ac16f3f8 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Tue, 31 Jan 2017 11:39:39 +0000 Subject: Update util.rb --- lib/byteback/util.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1