From 451c5d9c05f898b557d2f8e96b52895b8b723712 Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Sun, 20 Jun 2021 00:05:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=BE=93=E5=87=BA=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/AutoBuild_Function.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Scripts/AutoBuild_Function.sh b/Scripts/AutoBuild_Function.sh index 1ab84b7..a8adf01 100755 --- a/Scripts/AutoBuild_Function.sh +++ b/Scripts/AutoBuild_Function.sh @@ -285,6 +285,7 @@ PS_Firmware() { source ./VARIABLE_FILE_Sec mkdir -p bin/Firmware cd ${Firmware_Path} + echo -e "### Firmware Output ###\n$(ls -1)\n" case "${TARGET_PROFILE}" in x86_64) [[ -f ${Default_Legacy_Firmware} ]] && { @@ -301,11 +302,12 @@ PS_Firmware() { cp ${Default_Firmware} $(EVAL_FW common ${Home}/VARIABLE_FILE_Sec) TIME "Firmware: [${Default_Firmware}] is detected !" } || { - TIME "[ERROR] Firmware is not detected !" + TIME "Firmware is not detected !" + Output=1 } ;; esac - mv -f AutoBuild-* ${Home}/bin/Firmware + [[ ${Output} != 1 ]] && mv -f AutoBuild-* ${Home}/bin/Firmware cd ${Home} echo "[$(date "+%H:%M:%S")] Actions Avaliable: $(df -h | grep "/dev/root" | awk '{printf $4}')" }