Build: fix version injection(status page error)

pull/891/head
John Doe 2021-10-03 22:00:12 +08:00
parent d4d24149fe
commit 7edbe90f52
No known key found for this signature in database
GPG Key ID: 30F190E0C359CB4F
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ case $status_page in
sed -i $line_number_FV' a <a href="https://github.com/klever1988/nanopi-openwrt" target="_blank">klever1988/nanopi-openwrt</a> '$strDate $status_page
;;
*js)
line_number_FV=`grep -m1 -n 'corelink' $status_page | cut -d: -f1`
line_number_FV=`grep -m1 -n 'var fields' $status_page | cut -d: -f1`
sed -i $line_number_FV' i var pfv = document.createElement('\''placeholder'\'');pfv.innerHTML = '\''<a href="https://github.com/klever1988/nanopi-openwrt" target="_blank">klever1988/nanopi-openwrt</a> '$strDate"';" $status_page
line_number_FV=`grep -n 'Firmware Version' $status_page | cut -d : -f 1`
sed -i '/Firmware Version/d' $status_page