From 36568ec045372c007f4bd43111c5e065cbe93b6a Mon Sep 17 00:00:00 2001 From: Cliford Sab <25724815+clifordsab@users.noreply.github.com> Date: Sat, 18 Apr 2020 17:57:30 +0800 Subject: [PATCH] kiss: pkg_fixdeps(): More portable diff --- kiss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kiss b/kiss index b710812..f637b11 100755 --- a/kiss +++ b/kiss @@ -436,8 +436,9 @@ pkg_fixdeps() { # Display a 'diff' of the new dependencies against # the old ones. '-N' treats non-existent files as blank. - diff "$dep_file" depends ||: + diff -U 3 "$dep_file" depends ||: + # Remove the package's depends file if it's empty. [ -s depends ] || rm -f depends }