fix start.sh

This commit is contained in:
Yidaozhan Ya 2022-12-17 09:44:38 +08:00
parent 5d62d68039
commit fbf8755e2b
2 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@
_pkgname=linuxqq
pkgname=linuxqq-nt-bwrap
pkgver=2.0.2_510
pkgrel=3
pkgrel=4
pkgdesc="Tencent QQ NT for Linux with bubblewrap wrapper"
arch=('x86_64' 'aarch64')
url='https://im.qq.com'
@ -23,7 +23,7 @@ sha256sums_x86_64=('e3aa15ff6ae089b655df3913c6020ca56726bd676995aaf29b313fbd0643
'26059ccd89a4491083add9291398de658f98fb08a779f7ce46ac7bef8245b53f')
sha256sums_aarch64=('70c286006dae10da06c191b5f0718d17d686a8ef792f6f72215734773f01498b'
'556d3c9f3142dea199a6605694d5d47bb93d0b33e5c6ce8f70a69eb47b2235fc')
sha256sums=('e8fa21701b209486ae6d26507d0ce49fdee0a550058ad81d67d801eab867a140'
sha256sums=('3e3bab8273fca8f395ea3cb9a4daea0efaeebaf34526767105885b8c99cc1a69'
'8f6fae6fef7869dad2c309d77c9530e29dd737e63deced984f10ac379eeceb03'
'e9b4af9b4119876572f6fe7f48563e6b0830493a8d76e8415e15d89afe6453df')

View file

@ -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