From 2d39c3ab11dc942b183ab165d62c128889c2cab5 Mon Sep 17 00:00:00 2001 From: Martin Kepplinger Date: Thu, 16 May 2019 13:21:01 +0200 Subject: [PATCH] x230: fix output dir variable usage --- x230/x230_heads.sh | 2 +- x230/x230_skulls.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x230/x230_heads.sh b/x230/x230_heads.sh index 75a1e21..cd6789d 100755 --- a/x230/x230_heads.sh +++ b/x230/x230_heads.sh @@ -113,7 +113,7 @@ check_battery while true; do read -r -p "Flash the BIOS now? y/N: " yn case $yn in - [Yy]* ) cd output && flashrom -p internal --layout ${LAYOUT_FILENAME} --image bios -w "${OUTPUT_IMAGE_NAME}"; break;; + [Yy]* ) cd ${OUTPUT_PATH} && flashrom -p internal --layout ${LAYOUT_FILENAME} --image bios -w "${OUTPUT_IMAGE_NAME}"; break;; [Nn]* ) exit;; * ) exit;; esac diff --git a/x230/x230_skulls.sh b/x230/x230_skulls.sh index 75475ee..e7c4725 100755 --- a/x230/x230_skulls.sh +++ b/x230/x230_skulls.sh @@ -201,7 +201,7 @@ check_battery while true; do read -r -p "Flash the BIOS now? y/N: " yn case $yn in - [Yy]* ) cd output && flashrom -p internal --layout ${LAYOUT_FILENAME} --image bios -w "${OUTPUT_IMAGE_NAME}"; break;; + [Yy]* ) cd ${OUTPUT_PATH} && flashrom -p internal --layout ${LAYOUT_FILENAME} --image bios -w "${OUTPUT_IMAGE_NAME}"; break;; [Nn]* ) exit;; * ) exit;; esac