Clear build products before NEOS update (#1677)

Co-authored-by: Comma Device <device@comma.ai>
pull/1679/head
Jason Young 2020-06-10 18:40:49 -07:00 committed by GitHub
parent cf72a4eb34
commit 1932e2824e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -86,6 +86,12 @@ function launch {
cp "$DIR/scripts/continue.sh" "/data/data/com.termux/files/continue.sh"
fi
if [ ! -f "$BASEDIR/prebuilt" ]; then
echo "Clearing build products and resetting scons state prior to NEOS update"
cd $BASEDIR && scons --clean
rm -rf /tmp/scons_cache
rm -r $BASEDIR/.sconsign.dblite
fi
"$DIR/installer/updater/updater" "file://$DIR/installer/updater/update.json"
fi