Update diy-script.sh

This commit is contained in:
Hyy2001X 2020-09-19 17:16:12 +08:00 committed by GitHub
parent 07a600b0d8
commit 18d83febbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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