diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2017-01-31 12:12:23 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2017-01-31 12:12:23 +0000 |
commit | 659a651aa294c335e519b4c72bbd052b3199a793 (patch) | |
tree | a36a95dd652717624034c553bf18c7d66156ccf5 /bin/byteback-snapshot | |
parent | 38c89a9e32a67f96b40d756a5c356f8c31247ab9 (diff) |
First pass with rubocoprubocop
Diffstat (limited to 'bin/byteback-snapshot')
-rwxr-xr-x | bin/byteback-snapshot | 4 |
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 |