cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 792893530b970e90fb0e5660f75af9993795e305
parent 591b51fa2f782dbeec47a2eebd71806bfe597726
Author: Cem Keylan <cem@ckyln.com>
Date:   Sat, 11 Apr 2020 22:56:21 +0300

kiss-outdated: fix printing empty version information

Diffstat:
Mcontrib/kiss-outdated | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/contrib/kiss-outdated b/contrib/kiss-outdated @@ -4,6 +4,11 @@ old_IFS=$IFS +# Notify the user +printf '\033[1;33m-> \033[1;36mNOTE \033[m%s\n' \ + "Sometimes repology can reply with empty strings for a package" \ + "It is a good idea to double check the results." >&2 + # List via arguments or all installed packages. if [ "$1" ]; then set -- printf '%s\n' "$@" @@ -27,8 +32,11 @@ fi # Skip these. # shellcheck disable=2106 { - [ "${rep:--}" = - ] && continue - [ "$ver" = git ] && continue + # Sometimes rep becomes whitespace so the + # other check passes. + [ "$rep" ] || continue + [ "$rep" = - ] && continue + [ "$ver" = git ] && continue } # Split the comma separated list.