[PATCH 1/4] pacdiff: Reindent awk script

Denton Liu liu.denton at gmail.com
Sat Dec 26 07:27:17 UTC 2020


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 at gmail.com>
---
 src/pacdiff.sh.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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"
-- 
2.29.2.889.g5298b911bd


More information about the pacman-contrib mailing list