aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-09 09:33:54 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-09 09:33:54 +0000
commit2658dc45f761ddd7a01670dfb1b37bca99b6a2ec (patch)
tree22dcd175850c8166b7b14a7057640ecf5022d25d /kiss
parent299593b1219f49806f2afccc91f9b7c0cf669dae (diff)
downloadcpt-2658dc45f761ddd7a01670dfb1b37bca99b6a2ec.tar.gz
kiss: only show diffs if file has contents
FossilOrigin-Name: a745830474acc6d30160f0097e7a3ae1e911ee7fa34acc23e73365b00f4c169d
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss3
1 files changed, 2 insertions, 1 deletions
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