mvebu/uDPU: simplify grep usage
authorRosen Penev <rosenp@gmail.com>
Sat, 20 Aug 2022 20:50:40 +0000 (13:50 -0700)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 3 Feb 2023 10:34:20 +0000 (11:34 +0100)
commit7be11ee35ec5b95d9629ce316fbf1a91439b2f02
tree3fd686231f6e6b02717b5d7f8bae9cea848354b1
parent2a691fc7f2bac365d147beb593be4331f11c5dca
mvebu/uDPU: simplify grep usage

Instead of using the shell's evaluation, use grep's -q parameter.

Found with shellcheck's SC2143.

Also replaced a head call with grep's -m.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
target/linux/mvebu/cortexa53/base-files/lib/upgrade/uDPU.sh