From e2f85f23fac51d38c7c6df492547838b527b9460 Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Sun, 8 Mar 2020 22:14:05 +0000 Subject: kiss: Remove depends file if empty FossilOrigin-Name: f023f25d4a5d43abaec85d383c92b95b8f058e89078285a7c67436b36dd99143 --- kiss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'kiss') diff --git a/kiss b/kiss index 26f96df..feafe6d 100755 --- a/kiss +++ b/kiss @@ -448,6 +448,9 @@ pkg_fixdeps() { # Display a diff of the new dependencies against the old ones. diff "$dep_file" depends 2>/dev/null ||: + + # Remove the depends file if it is empty. + [ -s depends ] || rm -f depends } pkg_manifest() ( @@ -1310,7 +1313,7 @@ args() { l|list) pkg_list "$@" ;; u|update) pkg_updates ;; s|search) for pkg; do pkg_find "$pkg" all; done ;; - v|version) log kiss 1.7.6 ;; + v|version) log kiss 1.7.7 ;; h|help|-h|--help|'') log 'kiss [a|b|c|i|l|r|s|u|v] [pkg] [pkg] [pkg]' -- cgit v1.2.3