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 ""