summarylogtreecommitdiffstats
path: root/start.sh
diff options
context:
space:
mode:
Diffstat (limited to 'start.sh')
-rwxr-xr-xstart.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/start.sh b/start.sh
index 17a0dce0b7a3..bb355b86665a 100755
--- a/start.sh
+++ b/start.sh
@@ -22,7 +22,7 @@ if [ ! -f "${QQ_HOTUPDATE_DIR}/config.json" ]; then
cp "/opt/QQ/workarounds/config.json" "${QQ_HOTUPDATE_DIR}/config.json"
else
for VERSION in ${QQ_PREVIOUS_VERSIONS[@]}; do
- if [ ! -z "$(grep -z "${VERSION}" "${QQ_HOTUPDATE_DIR}/config.json")" ]; then
+ if [ ! -z "$(grep -Rn "${VERSION}" "${QQ_HOTUPDATE_DIR}/config.json")" ]; then
cp "/opt/QQ/workarounds/config.json" "${QQ_HOTUPDATE_DIR}/config.json"
break
fi