mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-05 13:32:05 +08:00
actually remove all old files
old-commit-hash: 38b5f25da25c9b525233cf6c1d0ff36e3650dc04
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user