Browse Source

x230: fix scripts in case no image found in working directory

pull/35/head
Martin Kepplinger 6 years ago
parent
commit
4678300e6e
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      x230/external_install_top.sh
  2. +1
    -1
      x230/x230_update.sh

+ 1
- 1
x230/external_install_top.sh View File

@ -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 <file>"
echo ""


+ 1
- 1
x230/x230_update.sh View File

@ -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 <file>"
echo ""


Loading…
Cancel
Save