From 18d83febbfac094f25ee0fa3c7a57aabaf23ffd4 Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Sat, 19 Sep 2020 17:16:12 +0800 Subject: [PATCH] Update diy-script.sh --- Scripts/diy-script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/diy-script.sh b/Scripts/diy-script.sh index 6548869..1c4f171 100644 --- a/Scripts/diy-script.sh +++ b/Scripts/diy-script.sh @@ -60,7 +60,7 @@ ExtraPackages git OpenClash https://github.com/vernesong master Diy-Part2() { echo "[$(date "+%H:%M:%S")] Current Openwrt version: $Lede_Version-`date +%Y%m%d`" echo "[$(date "+%H:%M:%S")] Current Device: $TARGET_PROFILE" -if [ ! $(grep -o "Compiled by $Author" $Default_File | wc -l) = "1" ];then +if [ ! $(grep -o "Compiled by $Author" $Default_File | wc -l) == 1 ];then sed -i "s?$Lede_Version?$Lede_Version Compiled by $Author [$Compile_Date]?g" $Default_File fi echo "$Lede_Version-`date +%Y%m%d`" > ./package/base-files/files/etc/openwrt_date