diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-03-08 22:14:05 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-03-08 22:14:05 +0000 |
commit | e2f85f23fac51d38c7c6df492547838b527b9460 (patch) | |
tree | f7b3c285fa983d7c48420fde13f0c55d36b3bea4 | |
parent | 8d3bb12e062e93b80f1afff22e6c5dbffb0d787e (diff) | |
download | cpt-e2f85f23fac51d38c7c6df492547838b527b9460.tar.gz |
kiss: Remove depends file if empty
FossilOrigin-Name: f023f25d4a5d43abaec85d383c92b95b8f058e89078285a7c67436b36dd99143
-rwxr-xr-x | kiss | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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]' |