From 7edbe90f52f3bc15ef9f7292b4fa96dd46e521a6 Mon Sep 17 00:00:00 2001 From: John Doe Date: Sun, 3 Oct 2021 22:00:12 +0800 Subject: [PATCH] Build: fix version injection(status page error) --- scripts/patches.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/patches.sh b/scripts/patches.sh index 7af8a1e..4800fe3 100644 --- a/scripts/patches.sh +++ b/scripts/patches.sh @@ -79,7 +79,7 @@ case $status_page in sed -i $line_number_FV' a klever1988/nanopi-openwrt '$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 = '\''klever1988/nanopi-openwrt '$strDate"';" $status_page line_number_FV=`grep -n 'Firmware Version' $status_page | cut -d : -f 1` sed -i '/Firmware Version/d' $status_page