From 712efbeac68933fa9a43584baedc23578285300a Mon Sep 17 00:00:00 2001 From: John Doe Date: Sat, 21 Aug 2021 07:34:26 +0800 Subject: [PATCH] build: add version tag to admin status page --- patches.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/patches.sh b/patches.sh index 25faaf6..38af119 100644 --- a/patches.sh +++ b/patches.sh @@ -42,3 +42,14 @@ fi sed -i '/182.140.223.146/d' scripts/download.pl sed -i '/\.cn\//d' scripts/download.pl sed -i '/tencent/d' scripts/download.pl + +status_page=`find package/ -follow -type f -path '*/autocore/files/arm/index.htm'` +line_number_FV=`grep -n 'Firmware Version' $status_page | cut -d : -f 1` +sed -i '/ver\./d' $status_page +strDate=`TZ=UTC-8 date +%Y-%m-%d` +sed -i $line_number_FV' a klever1988/nanopi-openwrt '$strDate $status_page +status_page=`find package/ -follow -type f -path '*/autocore/files/x86/index.htm'` +line_number_FV=`grep -n 'Firmware Version' $status_page | cut -d : -f 1` +sed -i '/ver\./d' $status_page +strDate=`TZ=UTC-8 date +%Y-%m-%d` +sed -i $line_number_FV' a klever1988/nanopi-openwrt '$strDate $status_page \ No newline at end of file