Fix one-off error (again)
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
e5aaaaa8b9
commit
a36d4e0fe2
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ function get_grep() {
|
||||||
|
|
||||||
updates=$(checkupdates)
|
updates=$(checkupdates)
|
||||||
|
|
||||||
num=$(echo -n "${updates}" | wc -l)
|
num=$(echo "${updates}" | grep -c -- '->')
|
||||||
[ $num -gt 0 ] || exit
|
[ $num -gt 0 ] || exit
|
||||||
|
|
||||||
req_restart=""
|
req_restart=""
|
||||||
|
|
Loading…
Reference in a new issue