Use -o with grep to guarantee filename position 82/62082/1
authorEric Ball <eball@linuxfoundation.org>
Thu, 24 Oct 2019 23:32:51 +0000 (16:32 -0700)
committerEric Ball <eball@linuxfoundation.org>
Thu, 24 Oct 2019 23:32:51 +0000 (16:32 -0700)
commit4e319cf56e36d9f4221d0ea3dcb956d75fea4771
tree7cca92e8df783fcbee84c03563d6e89cc8f3e0bf
parent0ebc82e3022f7d92eaec14888d05114584a3c20c
Use -o with grep to guarantee filename position

The "-o" option makes grep only return the matching words. This way,
even if there are other params listed before -f, the filename will
always be in position 2 of the grep output.

Issue: RELENG-2428
Change-Id: Id52e3bf285de7f0e46d4a442ef4b0986d2e66cbc
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
shell/maven-fetch-metadata.sh