lib/frontman/commands/init.rb in frontman-ssg-0.0.4 vs lib/frontman/commands/init.rb in frontman-ssg-0.1.0

- old
+ new

@@ -8,12 +8,11 @@ option :template option :force, type: :boolean desc 'init', 'Bootstrap a new Frontman project' def init(path) template = options[:template] || 'default' - unless template_exists?(template) - raise "Template #{template} does not exist!" - end + + raise "Template #{template} does not exist!" unless template_exists?(template) target_dir = File.join(Dir.pwd, path == '.' ? '' : path) unless allowed_to_modify_dir?(target_dir) say 'Not bootstrapping new Frontman project'