scripts/gen_image_generic.sh: replace -o with if/&&

-o is not well defined.

Found with shellcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-01-05 18:22:54 -08:00 committed by Petr Štetiar
parent 227e47b3ca
commit 3819337cdf