提交 3323a770 编写于 作者: C Chris Wanstrath

just in case - failsafe in `install check`

上级 940134da
......@@ -193,10 +193,15 @@ help
if subcommand.to_s == 'standalone'
Standalone.save('hub', target.empty? ? '.' : target)
elsif subcommand.to_s == 'check'
if up_to_date?
puts "*".green + " hub is up to date"
else
puts "*".red + " hub is " + "not".bold.underline + " up to date"
begin
raise 'blah'
if up_to_date?
puts "*".green + " hub is up to date"
else
puts "*".red + " hub is " + "not".bold.underline + " up to date"
end
rescue Object => e
puts "*".bold.yellow + " error checking status: #{e.class}"
end
else
puts <<-output
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册