Revision
4523
Author
lsansonetti@apple.com
Date
2010-09-17 14:30:26 -0700 (Fri, 17 Sep 2010)

Log Message

when installing an executable which already exists with a different shebang, don't ask a question if -f is provided

Modified Paths

Diff

Modified: MacRuby/trunk/lib/rubygems/installer.rb (4522 => 4523)


--- MacRuby/trunk/lib/rubygems/installer.rb	2010-09-17 21:19:08 UTC (rev 4522)
+++ MacRuby/trunk/lib/rubygems/installer.rb	2010-09-17 21:30:26 UTC (rev 4523)
@@ -346,7 +346,7 @@
 ruby implementation or version. This operation may break the script.
 WARN_MESSAGE
             alert_warning(warn)
-            if not ask_yes_no("Do you still wish to continue?")
+            if !@force && !ask_yes_no("Do you still wish to continue?")
               raise GenerateBinaryError, "Could not write #{bin_script_path}"
             end
             say "Overwrote #{bin_script_path}" if Gem.configuration.really_verbose