Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #17 from trotzig/fix-missing-snapshots-folder
Browse files Browse the repository at this point in the history
Fix `likadan clean` for missing snapshots folder
  • Loading branch information
trotzig committed Jul 27, 2015
2 parents 0c7d581 + 1055e03 commit c52dffb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/likadan
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ when 'review'
require 'likadan_server'

when 'clean'
FileUtils.remove_entry_secure LikadanUtils.config['snapshots_folder']
if File.directory? LikadanUtils.config['snapshots_folder']
FileUtils.remove_entry_secure LikadanUtils.config['snapshots_folder']
end

when 'approve', 'reject'
abort 'Missing example name' unless example_name = ARGV[1]
Expand Down

0 comments on commit c52dffb

Please sign in to comment.