actually remove all old files

old-commit-hash: 38b5f25da25c9b525233cf6c1d0ff36e3650dc04
This commit is contained in:
Adeeb Shihadeh
2020-06-25 15:19:48 -07:00
parent da9531b375
commit 673d208346
+2 -5
View File
@@ -43,12 +43,9 @@ git checkout master-ci
git reset --hard origin/devel
git clean -xdf
# leave .git alone
# remove everything except .git
echo "[-] erasing old openpilot T=$SECONDS"
rm -rf $TARGET_DIR/* $TARGET_DIR/.gitmodules
# delete dotfiles in root
find . -maxdepth 1 -type f -delete
find . -maxdepth 1 -not -path './.git' -not -name '.' -not -name '..' -exec rm -rf '{}' \;
# reset tree and get version
cd $SOURCE_DIR