git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] Guilt: Fixed guilt-patchbomb temporary mbox deletion bug
@ 2007-03-06  7:01 Nur Hussein
  2007-03-06  7:06 ` Junio C Hamano
  2007-03-06  7:47 ` Josef Sipek
  0 siblings, 2 replies; 5+ messages in thread
From: Nur Hussein @ 2007-03-06  7:01 UTC (permalink / raw)
  To: jsipek; +Cc: git

A bug occurred where the temporary mbox is deleted even when 'N' or 'n' was selected
because of the incorrect use of the -a operator when testing user input. Fixed now to
use -o instead.

Signed-off-by: Nur Hussein <hussein@cs.usm.my>
---
 guilt-patchbomb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/guilt-patchbomb b/guilt-patchbomb
index 6f51b4b..ad80fb1 100755
--- a/guilt-patchbomb
+++ b/guilt-patchbomb
@@ -88,5 +88,5 @@ fi
 echo -n "Delete temporary directory? [Y/n] "
 read n
 
-[ "$n" != "n" -a "$n" != "N" ] && exit 0
+[ "$n" != "n" -o "$n" != "N" ] && exit 0
 rm -rf $dir
-- 
1.4.4.4


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-03-06  7:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-06  7:01 [PATCH 1/1] Guilt: Fixed guilt-patchbomb temporary mbox deletion bug Nur Hussein
2007-03-06  7:06 ` Junio C Hamano
2007-03-06  7:38   ` Josef Sipek
2007-03-06  7:47 ` Josef Sipek
2007-03-06  7:53   ` Josef Sipek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).