From 2658dc45f761ddd7a01670dfb1b37bca99b6a2ec Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Sun, 9 Feb 2020 09:33:54 +0000 Subject: kiss: only show diffs if file has contents FossilOrigin-Name: a745830474acc6d30160f0097e7a3ae1e911ee7fa34acc23e73365b00f4c169d --- kiss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kiss') 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 -- cgit v1.2.3