Permalink
Browse files

Disallow deploying builds when release notes are blank

  • Loading branch information...
1 parent ea39ac1 commit f1614820492fdd12283b5a60f5f103e17e98cb8b @kattrali committed May 25, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/cocoa/commands/scripting.rb
@@ -141,10 +141,10 @@ class TestFlightCommand < AppleScriptCommand
def text
result = Redcar::Application::Dialog.input("TestFlight","Build Release Notes:")
if result[:button] == :ok
- if text = result[:value]
+ if text = result[:value] and not text.empty?
"rake testflight notes=\\\"#{text.gsub('"','\\\\\"')}\\\""
else
- Redcar::Application::Dialog.message_box("Release Notes are required to release a build to TestFlight.")
+ Redcar::Application::Dialog.message_box("Release Notes are required to deploy a build to TestFlight.")
nil
end
end

0 comments on commit f161482

Please sign in to comment.