[1/4] pacdiff: Reindent awk script

Message ID 7c6223deea2f2270a5b18ed2653669e04f522895.1608967613.git.liu.denton@gmail.com
State New
Headers show
Series pacdiff: learn (M)erge mode | expand

Commit Message

Denton Liu Dec. 26, 2020, 7:27 a.m. UTC
The way that the awk script used for fetching files from the pacdb is
indented is very misleading. It appears as if the `print $1` is part of
the if.

Unindent the `print $1` and the following closing brace so that it's
obvious that they are part of the while.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
---
 src/pacdiff.sh.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/src/pacdiff.sh.in b/src/pacdiff.sh.in
index af85abb..c4dbd89 100644
--- a/src/pacdiff.sh.in
+++ b/src/pacdiff.sh.in
@@ -87,8 +87,8 @@  cmd() {
 		awk '/^%BACKUP%$/ {
 		while (getline) {
 			if (/^$/) { nextfile }
-				print $1
-			}
+			print $1
+		}
 		}' "${pac_db}"/*/files | while read -r bkup; do
 			print_existing "/$bkup.pacnew"
 			print_existing "/$bkup.pacorig"