From 5931cdd02b995892592f898784dab192c8ef6895 Mon Sep 17 00:00:00 2001 From: William Morgan Date: Sun, 2 Nov 2008 10:52:47 -0800 Subject: [PATCH] accept "yes" when asked so patch from Thomas Pospisek ML" --- bin/sup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sup b/bin/sup index 74a4997..124af75 100644 --- 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 -- 2.45.2