From fe15f1d96cabd171fad15321674f90e6fc4602d6 Mon Sep 17 00:00:00 2001 From: Nedyalko Andreev Date: Fri, 6 Oct 2017 15:01:57 +0300 Subject: [PATCH] Simplify archlinux upgrade check --- misc/upgrades-installed-check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/upgrades-installed-check b/misc/upgrades-installed-check index d55b04a..fc6c283 100755 --- a/misc/upgrades-installed-check +++ b/misc/upgrades-installed-check @@ -29,7 +29,7 @@ elif [ -e /etc/arch-release ]; then set -o pipefail checkupdates_output="$(checkupdates 2>&1)" exit_code="$?" - echo "$checkupdates_output" | { grep -F -- '->' || true; } | [ "$(wc -L)" -eq "0" ] && echo "true" || echo "false" + echo "$checkupdates_output" | grep -qF -- '->' && echo "false" || echo "true" else echo "Check not implemented for this distribution" >&2 exit 1