Ver código fonte

Simplify archlinux upgrade check

Nedyalko Andreev 6 anos atrás
pai
commit
fe15f1d96c
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      misc/upgrades-installed-check

+ 1 - 1
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