]> git.cworth.org Git - sup/commitdiff
accept "yes" when asked so
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 2 Nov 2008 18:52:47 +0000 (10:52 -0800)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 2 Nov 2008 18:52:47 +0000 (10:52 -0800)
patch from Thomas Pospisek ML" <tpo2@sourcepole.ch>

bin/sup

diff --git a/bin/sup b/bin/sup
index 74a4997b4a312bfdebbe14705b41b0001fac9531..124af755d58ab9e04089f240ede3ca20f7061756 100644 (file)
--- a/bin/sup
+++ b/bin/sup
@@ -102,7 +102,7 @@ rescue Index::LockError => e
   h.say Index.fancy_lock_error_message_for(e)
 
   case h.ask("Should I ask that process to kill itself? ")
-  when /^\s*y\s*$/i
+  when /^\s*y(es)?\s*$/i
     h.say "Ok, suggesting seppuku..."
     FileUtils.touch Redwood::SUICIDE_FN
     sleep SuicideManager::DELAY * 2