summarylogtreecommitdiffstats
path: root/liteloader-qqnt-patcher.sh
blob: ca4ea6b63952de20edcea294900563b191e077f1 (plain)
1
2
3
4
5
#!/bin/bash
TargetFile="/opt/QQ/resources/app/package.json"
TargetLine=$(awk "/main/{print NR}" $TargetFile)
TargetContent=$(awk -F '[:,]' '/"main"/ {gsub(/"| /, "", $2); print $2}' $TargetFile)
sed -i "${TargetLine}s!${TargetContent}!${1}!g" $TargetFile