Skip to content

Commit d51d20e

Browse files
committed
make persistence of global.config.json rights friendly
1 parent ec3a8b9 commit d51d20e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/upgrade.sh

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

4646
# Update binary
4747
cd ${bindir}
48-
cp ${repo}/global.config.json .
48+
cp ${repo}/global.config.json /tmp
4949
rm -rf ${repo}
5050
mkdir ${repo}
5151
cd ${repo}
52-
cp ../global.config.json .
52+
mv /tmp/global.config.json .
5353
memory=$(cat /proc/meminfo | grep MemAvailable | awk '{print $2}')
5454
let "cpuNumber = memory / 2100000" || cpuNumber=1
5555
cmake -DCMAKE_BUILD_TYPE=Release ${srcdir}/${repo} -GNinja

0 commit comments

Comments
 (0)