summaryrefslogtreecommitdiff
path: root/lib/byteback/util.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/byteback/util.rb')
-rw-r--r--lib/byteback/util.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/byteback/util.rb b/lib/byteback/util.rb
index 9a993d6..07d7056 100644
--- a/lib/byteback/util.rb
+++ b/lib/byteback/util.rb
@@ -66,5 +66,12 @@ module Byteback
pid2, status = Process.waitpid2(pid, 0)
status.exitstatus
end
+
+ def btrfs_bin
+ path = '/bin/btrfs'
+ path = '/sbin/btrfs' unless File.exists?(path)
+ path
+ end
+
end
end