From 1932e2824eabe85cf5df458301a188e24061bec6 Mon Sep 17 00:00:00 2001 From: Jason Young <46612682+jyoung8607@users.noreply.github.com> Date: Wed, 10 Jun 2020 18:40:49 -0700 Subject: [PATCH] Clear build products before NEOS update (#1677) Co-authored-by: Comma Device --- launch_chffrplus.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/launch_chffrplus.sh b/launch_chffrplus.sh index 2d3fa39d4..0985f0845 100755 --- a/launch_chffrplus.sh +++ b/launch_chffrplus.sh @@ -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