summarylogtreecommitdiffstats
path: root/start.sh
diff options
context:
space:
mode:
authorYidaozhan Ya2022-12-17 09:44:38 +0800
committerYidaozhan Ya2022-12-17 09:44:38 +0800
commitfbf8755e2bb0d18e3397e138f2a2dc6a2e4c832d (patch)
treeec83c91a9bf3e1d60a4058b5d525083ad83064e0 /start.sh
parent5d62d680391afd286d56a81dee8feb83c80dc14d (diff)
downloadaur-fbf8755e2bb0d18e3397e138f2a2dc6a2e4c832d.tar.gz
fix start.sh
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