1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-04 05:55:36 -07:00

kiss: pkg_fixdeps(): More portable diff

This commit is contained in:
Cliford Sab 2020-04-18 17:57:30 +08:00
parent 47de49f92c
commit 36568ec045

3
kiss
View File

@ -436,8 +436,9 @@ pkg_fixdeps() {
# Display a 'diff' of the new dependencies against # Display a 'diff' of the new dependencies against
# the old ones. '-N' treats non-existent files as blank. # 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 [ -s depends ] || rm -f depends
} }