From 83f91fee62966c793705bc89c973eab5827b67ed Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 9 Feb 2020 11:33:55 +0200 Subject: [PATCH] kiss: only show diffs if file has contents --- kiss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kiss b/kiss index 6aa0ce5..f829f2f 100755 --- a/kiss +++ b/kiss @@ -1147,7 +1147,8 @@ pkg_updates() { # Show a diff of each new change to the repositories. # This spawns the user's set PAGER with a fallback to less. - [ "$KISS_AUDIT" ] && "${PAGER:-less}" "$mak_dir/log" + [ -s "$mak_dir/log" ] && [ "$KISS_AUDIT" = 1 ] && + "${PAGER:-less}" "$mak_dir/log" # Tell 'pkg_build' to always prompt before build. pkg_update=1