aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/kiss-outdated12
1 files changed, 10 insertions, 2 deletions
diff --git a/contrib/kiss-outdated b/contrib/kiss-outdated
index db2b421..d8d5559 100755
--- 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.