diff options
author | Yidaozhan Ya | 2022-12-17 09:44:38 +0800 |
---|---|---|
committer | Yidaozhan Ya | 2022-12-17 09:44:38 +0800 |
commit | fbf8755e2bb0d18e3397e138f2a2dc6a2e4c832d (patch) | |
tree | ec83c91a9bf3e1d60a4058b5d525083ad83064e0 /start.sh | |
parent | 5d62d680391afd286d56a81dee8feb83c80dc14d (diff) | |
download | aur-fbf8755e2bb0d18e3397e138f2a2dc6a2e4c832d.tar.gz |
fix start.sh
Diffstat (limited to 'start.sh')
-rwxr-xr-x | start.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |