1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

Merge pull request #1710 from tricknotes/exit-with-1

Exit with error code on `init` command failed
This commit is contained in:
Thomas Reynolds 2015-12-30 15:59:27 -08:00
commit da1f3f7af6

View file

@ -39,7 +39,7 @@ module Middleman::Cli
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('#')
@ -55,7 +55,7 @@ module Middleman::Cli
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