修复名称截取

This commit is contained in:
Hyy2001X 2022-03-22 12:20:22 +08:00
parent 50c1415115
commit 72e2867cc3
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ Firmware_Diy_Before() {
then
OP_VERSION_HEAD="R$(date +%y.%m)-"
else
OP_BRANCH="$(echo ${OP_BRANCH} | egrep -o "[0-9]+.[0-9]+")"
OP_BRANCH="$(echo ${OP_BRANCH} | egrep -o "[0-9]+.[0-9]+" | awk 'NR==1')"
OP_VERSION_HEAD="R${OP_BRANCH}-"
fi
case "${OP_AUTHOR}/${OP_REPO}" in