summaryrefslogtreecommitdiff
path: root/bin/byteback-snapshot
diff options
context:
space:
mode:
Diffstat (limited to 'bin/byteback-snapshot')
-rwxr-xr-xbin/byteback-snapshot4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/byteback-snapshot b/bin/byteback-snapshot
index 18a7a67..c7cb920 100755
--- a/bin/byteback-snapshot
+++ b/bin/byteback-snapshot
@@ -13,7 +13,7 @@ include Byteback::Log
opts = Trollop.options do
opt :root, 'Backups directory (must be a btrfs subvolume)',
- :type => :string
+ type: :string
opt :snapshot, '(ignored for compatibility)'
@@ -23,7 +23,7 @@ end
@root = opts[:root]
@verbose = opts[:verbose]
-fatal('--root not readable') unless File.directory?("#{@root}")
+fatal('--root not readable') unless File.directory?(@root.to_s)
@backups = BackupDirectory.new(@root)
snapshots = @backups.snapshots