添加开关: Short_Firmware_Date
This commit is contained in:
parent
6cddb96bcb
commit
e33d98284c
|
@ -6,6 +6,7 @@
|
||||||
Diy_Core() {
|
Diy_Core() {
|
||||||
Author=Hyy2001
|
Author=Hyy2001
|
||||||
Default_Device=x86_64
|
Default_Device=x86_64
|
||||||
|
Short_Firmware_Date=true
|
||||||
|
|
||||||
INCLUDE_AutoUpdate=true
|
INCLUDE_AutoUpdate=true
|
||||||
INCLUDE_AutoBuild_Tools=true
|
INCLUDE_AutoBuild_Tools=true
|
||||||
|
|
|
@ -7,6 +7,7 @@ GET_TARGET_INFO() {
|
||||||
Diy_Core
|
Diy_Core
|
||||||
Home="${GITHUB_WORKSPACE}/openwrt"
|
Home="${GITHUB_WORKSPACE}/openwrt"
|
||||||
[ -f "${GITHUB_WORKSPACE}/Openwrt.info" ] && . ${GITHUB_WORKSPACE}/Openwrt.info
|
[ -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)"
|
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_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')"
|
Source_Owner="$(echo "${Source_Repo}" | egrep -o "[a-z]+" | awk 'NR==4')"
|
||||||
|
|
Loading…
Reference in New Issue