Browse Source

x230: external scripts: fix chip-not-found case

This fixes a memory leak and the output in case the flash chip is not
found by our scripts.
pull/54/head
Martin Kepplinger 5 years ago
parent
commit
ba8d1a3782
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      x230/external_install_bottom.sh
  2. +1
    -1
      x230/external_install_top.sh

+ 1
- 1
x230/external_install_bottom.sh View File

@ -163,7 +163,7 @@ if [ ! "$have_chipname" -gt 0 ] ; then
fi
if [ ! "$chip_found" -gt 0 ] ; then
echo "chip not detected."
flashrom -p ${programmer}
flashrom -p ${programmer} || true
rm -rf "${TEMP_DIR}"
echo "chip not detected. Please find it manually and rerun with the -c parameter."
exit 1


+ 1
- 1
x230/external_install_top.sh View File

@ -171,7 +171,7 @@ if [ ! "$have_chipname" -gt 0 ] ; then
fi
if [ ! "$chip_found" -gt 0 ] ; then
echo "chip not detected."
flashrom -p ${programmer}
flashrom -p ${programmer} || true
rm -rf "${TEMP_DIR}"
echo "Please find it manually in the list above and rerun with the -c parameter."
exit 1


Loading…
Cancel
Save