diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-02-09 09:33:54 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-02-09 09:33:54 +0000 |
commit | 2658dc45f761ddd7a01670dfb1b37bca99b6a2ec (patch) | |
tree | 22dcd175850c8166b7b14a7057640ecf5022d25d /kiss | |
parent | 299593b1219f49806f2afccc91f9b7c0cf669dae (diff) | |
download | cpt-2658dc45f761ddd7a01670dfb1b37bca99b6a2ec.tar.gz |
kiss: only show diffs if file has contents
FossilOrigin-Name: a745830474acc6d30160f0097e7a3ae1e911ee7fa34acc23e73365b00f4c169d
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |