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(-)
Show changes to guilt-patchbomb +1 −1
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.