From 659a651aa294c335e519b4c72bbd052b3199a793 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Tue, 31 Jan 2017 12:12:23 +0000 Subject: First pass with rubocop --- bin/byteback-snapshot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/byteback-snapshot') 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 -- cgit v1.2.3