Skip to content

Commit ec3a8b9

Browse files
committed
persist global.config.json before the upgrade
1 parent 2556501 commit ec3a8b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/upgrade.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@ export CCACHE_DISABLE=1
4545

4646
# Update binary
4747
cd ${bindir}
48+
cp ${repo}/global.config.json .
4849
rm -rf ${repo}
4950
mkdir ${repo}
5051
cd ${repo}
52+
cp ../global.config.json .
5153
memory=$(cat /proc/meminfo | grep MemAvailable | awk '{print $2}')
5254
let "cpuNumber = memory / 2100000" || cpuNumber=1
5355
cmake -DCMAKE_BUILD_TYPE=Release ${srcdir}/${repo} -GNinja

0 commit comments

Comments
 (0)