添加开关: Short_Firmware_Date

This commit is contained in:
Hyy2001X 2021-04-20 19:51:13 +08:00
parent 6cddb96bcb
commit e33d98284c
2 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@
Diy_Core() {
Author=Hyy2001
Default_Device=x86_64
Short_Firmware_Date=true
INCLUDE_AutoUpdate=true
INCLUDE_AutoBuild_Tools=true

View File

@ -7,6 +7,7 @@ GET_TARGET_INFO() {
Diy_Core
Home="${GITHUB_WORKSPACE}/openwrt"
[ -f "${GITHUB_WORKSPACE}/Openwrt.info" ] && . ${GITHUB_WORKSPACE}/Openwrt.info
[[ "${Short_Firmware_Date}" == true ]] && Compile_Date="$(echo ${Compile_Date} | cut -c1-8)"
Owner_Repo="$(grep "https://github.com/[a-zA-Z0-9]" ${GITHUB_WORKSPACE}/.git/config | cut -c8-100)"
Source_Repo="$(grep "https://github.com/[a-zA-Z0-9]" ${Home}/.git/config | cut -c8-100)"
Source_Owner="$(echo "${Source_Repo}" | egrep -o "[a-z]+" | awk 'NR==4')"