diff --git a/bin/likadan b/bin/likadan index 949025a..5df7023 100755 --- a/bin/likadan +++ b/bin/likadan @@ -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]