Fix an incorrect grep usage in archlinux upgrade check

This commit is contained in:
Nedyalko Andreev 2017-10-04 18:16:17 +03:00
parent f28244ab47
commit a835b9b67d
No known key found for this signature in database
GPG Key ID: 3F8D3160C1860811

View File

@ -29,7 +29,7 @@ elif [ -e /etc/arch-release ]; then
set -o pipefail
checkupdates_output="$(checkupdates 2>&1)"
exit_code="$?"
echo "$checkupdates_output" | grep '->' | [ "$(wc -L)" -eq 0 ] && echo "true" || echo "false"
echo "$checkupdates_output" | { grep -F -- '->' || true; } | [ "$(wc -L)" -eq "0" ] && echo "true" || echo "false"
else
echo "Check not implemented for this distribution" >&2
exit 1