From 7f3276b7dc376a11fee976ac8f879b669c9b5da6 Mon Sep 17 00:00:00 2001 From: Martin Kepplinger Date: Wed, 3 Apr 2019 19:51:20 +0200 Subject: [PATCH] x230: external_install_bottom: fix detecting EN25QH64 chip This should fix #82 --- x230/external_install_bottom.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x230/external_install_bottom.sh b/x230/external_install_bottom.sh index 2e16851..4f1b43a 100755 --- a/x230/external_install_bottom.sh +++ b/x230/external_install_bottom.sh @@ -161,7 +161,7 @@ if [ ! "$have_chipname" -gt 0 ] ; then fi if [ ! "$chip_found" -gt 0 ] ; then - CHIPNAME=$(cat "${TEMP_DIR}"/chips | grep Found | grep "EN25QH64" | grep -o '".*"' || true) + CHIPNAME=$(cat "${TEMP_DIR}"/chips | grep Found | grep "EN25QH64" | grep -o '".*"' | grep -oP '"\K[^"\047]+(?=["\047])' || true) if [ ! -z "${CHIPNAME}" ] ; then chip_found=1 fi