Pārlūkot izejas kodu

Update update_core.sh

rufengsuixing 6 gadi atpakaļ
vecāks
revīzija
ab237280b9
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      root/usr/share/AdGuardHome/update_core.sh

+ 2 - 0
root/usr/share/AdGuardHome/update_core.sh

@@ -29,8 +29,10 @@ check_latest_version(){
 	if [ -f "$configpath" ]; then
 	now_ver="$($binpath -c $configpath --check-config 2>&1| grep -E 'v[0-9.]+' -o)"
 	else
+	if [ -f "$binpath" ]; then
 	now_ver=$(uci get AdGuardHome.AdGuardHome.version)
 	fi
+	fi
 	if [ "${latest_ver}"x != "${now_ver}"x ]; then
 		clean_log
 		echo -e "Local version: ${now_ver}., cloud version: ${latest_ver}." >>/tmp/AdGuardHome_update.log