Skip to content

Commit b3bc22e

Browse files
committed
clean up build directory (without removing it) prior to upgrade
1 parent d51d20e commit b3bc22e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scripts/upgrade.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ export CXX=/usr/bin/clang++
4444
export CCACHE_DISABLE=1
4545

4646
# Update binary
47-
cd ${bindir}
48-
cp ${repo}/global.config.json /tmp
49-
rm -rf ${repo}
50-
mkdir ${repo}
51-
cd ${repo}
47+
cd ${bindir}/${repo}
48+
cp global.config.json /tmp
49+
rm -rf *
50+
rm -rf .ninja_*
5251
mv /tmp/global.config.json .
5352
memory=$(cat /proc/meminfo | grep MemAvailable | awk '{print $2}')
5453
let "cpuNumber = memory / 2100000" || cpuNumber=1

0 commit comments

Comments
 (0)