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 <allan@archlinux.org>
This commit is contained in:
parent
af2c0a1537
commit
ae2c9bba5a
1 changed files with 2 additions and 1 deletions
|
@ -178,7 +178,8 @@ while IFS= read -u 3 -r -d '' pacfile; do
|
||||||
o|O) mv -v "$pacfile" "$file"; break ;;
|
o|O) mv -v "$pacfile" "$file"; break ;;
|
||||||
v|V)
|
v|V)
|
||||||
$diffprog "$pacfile" "$file"
|
$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 ;;
|
s|S) break ;;
|
||||||
*) ask "Invalid answer. Try again: [v/s/r/o/q] "; continue ;;
|
*) ask "Invalid answer. Try again: [v/s/r/o/q] "; continue ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Reference in a new issue