Skip to content

Commit 953e991

Browse files
committed
avoid usage of /tmp dir on clean up
1 parent b3bc22e commit 953e991

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/upgrade.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,8 @@ export CCACHE_DISABLE=1
4545

4646
# Update binary
4747
cd ${bindir}/${repo}
48-
cp global.config.json /tmp
49-
rm -rf *
48+
ls --hide=global.config.json | xargs -d '\n' rm -rf
5049
rm -rf .ninja_*
51-
mv /tmp/global.config.json .
5250
memory=$(cat /proc/meminfo | grep MemAvailable | awk '{print $2}')
5351
let "cpuNumber = memory / 2100000" || cpuNumber=1
5452
cmake -DCMAKE_BUILD_TYPE=Release ${srcdir}/${repo} -GNinja

0 commit comments

Comments
 (0)