From ae2c9bba5a0de58454814c5fa438cf1db52707ae Mon Sep 17 00:00:00 2001 From: Vasiliy Korchagin Date: Mon, 18 Nov 2013 13:01:38 +1000 Subject: pacdiff: do not remove pacfile after viewing Automatically removing the file after viewing is not good if on viewing you decide to deal with it later. Signed-off-by: Allan McRae --- contrib/pacdiff.sh.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/pacdiff.sh.in b/contrib/pacdiff.sh.in index 1bad0e4b..735b2f55 100644 --- a/contrib/pacdiff.sh.in +++ b/contrib/pacdiff.sh.in @@ -178,7 +178,8 @@ while IFS= read -u 3 -r -d '' pacfile; do o|O) mv -v "$pacfile" "$file"; break ;; v|V) $diffprog "$pacfile" "$file" - rm -iv "$pacfile"; break ;; + ask "(V)iew, (S)kip, (R)emove %s, (O)verwrite with %s, (Q)uit: [v/s/r/o/q] " "$file_type" "$file_type"; + continue ;; s|S) break ;; *) ask "Invalid answer. Try again: [v/s/r/o/q] "; continue ;; esac -- cgit v1.2.3-24-g4f1b