From 4678300e6e842a3b6232d8271b90923a8fe1bf89 Mon Sep 17 00:00:00 2001 From: Martin Kepplinger Date: Wed, 23 May 2018 08:13:37 +0200 Subject: [PATCH] x230: fix scripts in case no image found in working directory --- x230/external_install_top.sh | 2 +- x230/x230_update.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x230/external_install_top.sh b/x230/external_install_top.sh index f710078..e285e01 100755 --- a/x230/external_install_top.sh +++ b/x230/external_install_top.sh @@ -78,7 +78,7 @@ done command -v flashrom >/dev/null 2>&1 || { echo -e >&2 "${RED}Please install flashrom and run as root${NC}."; exit 1; } if [ ! "$have_input_image" -gt 0 ] ; then - image_available=$(ls -1 | grep x230_coreboot_seabios | grep rom) + image_available=$(ls -1 | grep x230_coreboot_seabios || true) if [ -z "${image_available}" ] ; then echo "No image file found. Please add -i " echo "" diff --git a/x230/x230_update.sh b/x230/x230_update.sh index cfd8d96..9a85b2c 100755 --- a/x230/x230_update.sh +++ b/x230/x230_update.sh @@ -50,7 +50,7 @@ do done if [ ! "$have_input_image" -gt 0 ] ; then - image_available=$(ls -1 | grep x230_coreboot_seabios | grep rom) + image_available=$(ls -1 | grep x230_coreboot_seabios || true) if [ -z "${image_available}" ] ; then echo "No image file found. Please add -i " echo ""