From 542cbc0401a12c2f9b718a47aa97dc8ab8c4975a Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Sun, 27 Sep 2020 16:38:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E8=AE=BE=E5=A4=87=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E8=8E=B7=E5=8F=96=E6=96=B9=E5=BC=8F:(?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/diy-script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/diy-script.sh b/Scripts/diy-script.sh index 538bb5c..c912148 100644 --- a/Scripts/diy-script.sh +++ b/Scripts/diy-script.sh @@ -10,7 +10,7 @@ Default_File=./package/lean/default-settings/files/zzz-default-settings Lede_Version=`egrep -o "R[0-9]+\.[0-9]+\.[0-9]+" $Default_File` Compile_Date=`date +'%Y/%m/%d'` Compile_Time=`date +'%Y-%m-%d %H:%M:%S'` -TARGET_PROFILE=`grep '^CONFIG_TARGET.*DEVICE.*=y' .config | sed -r 's/.*DEVICE_(.*)=y/\1/' | awk 'NR==1'` +TARGET_PROFILE=`egrep -o "CONFIG_TARGET.*DEVICE.*=y" .config | sed -r 's/.*DEVICE_(.*)=y/\1/'` } GET_TARGET_INFO() {