Speed up recovery script finding matching images
Make all the calls to grep go away, and instead use a case statement
like we do earlier in the file to count the number of matching images.
Runtime is now just a few seconds.
BUG=chromium:263207
TEST=run ./recovery.sh; press enter; LOTS of models printed
run ./recovery.sh; type LINK; just link models printed
Change-Id: I957d37f9ef9f24d00c63b9bfab509e04f4add78c
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/62921
Reviewed-by: Daniel Erat <derat@chromium.org>
1 file changed