lib/middleman-cli/init.rb in middleman-cli-4.0.0 vs lib/middleman-cli/init.rb in middleman-cli-4.1.0.rc.1

- old
+ new

@@ -37,11 +37,11 @@ data['links']['github'] data['links']['github'].split('#') rescue ::OpenURI::HTTPError say "Template `#{options[:template]}` not found in Middleman Directory." say 'Did you mean to use a full `user/repo` path?' - exit + exit 1 end else repo_name, repo_branch = options[:template].split('#') [repository_path(repo_name), repo_branch] end @@ -53,10 +53,10 @@ run("git clone --depth 1 #{branch_cmd}#{repo_path} #{dir}") unless File.directory?(dir) say 'Git clone failed, maybe the url is invalid or you don\'t have the permissions?', :red - exit + exit 1 end inside(target) do thorfile = File.join(dir, 'Thorfile')