This repository has been archived on 2022-01-28. You can view files and clone it, but cannot push or open issues or pull requests.
Marlin-Artillery-M600/buildroot/bin/env_clean

14 lines
402 B
Text
Raw Normal View History

#!/usr/bin/env bash
2018-08-21 03:52:25 +02:00
[ -d ".pioenvs" ] && rm -r .pioenvs
[ -d ".piolibdeps" ] && rm -r .piolibdeps
[ -d ".piolib" ] && rm -r .piolib
if [ ! -z "$1" ]; then
if [ $1 = "--deep" ]; then
2018-08-21 03:52:25 +02:00
[ -d "~/.platformio/packages" ] && rm -r ~/.platformio/packages/*
[ -d "~/.platformio/platforms" ] && rm -r ~/.platformio/platforms/*
[ -d "~/.platformio/.cache" ] && rm -r ~/.platformio/.cache/*
fi
fi