1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-24 16:10:05 -07:00

kiss: only show diffs if file has contents

This commit is contained in:
Dylan Araps 2020-02-09 11:33:55 +02:00
parent 77b90da4e2
commit 83f91fee62
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

3
kiss
View File

@ -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