From 742a248689f006c2497ca57b4de7cd681805f207 Mon Sep 17 00:00:00 2001 From: dnomd343 Date: Fri, 27 Aug 2021 17:25:50 +0800 Subject: [PATCH] fix: wrong recover of qqwry.dat --- backend/qqwryUpdate.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backend/qqwryUpdate.sh b/backend/qqwryUpdate.sh index 1f9aab2..e81f1de 100755 --- a/backend/qqwryUpdate.sh +++ b/backend/qqwryUpdate.sh @@ -27,6 +27,13 @@ if (\$fp) { EOF php unlock.php + +file_size=`du -b qqwry.dat | awk '{print $1}'` +if [ $file_size = "0" ]; then + echo "qqwry.dat update fail." + exit +fi + cd .. cp -f temp/qqwry.dat qqwry.dat rm -rf temp/