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

29 lines
496 B
Bash
Executable file

#!/usr/bin/env bash
if [ -d ".pioenvs" ]; then
rm -r .pioenvs
fi
if [ -d ".piolibdeps" ]; then
rm -r .piolibdeps
fi
if [ -d ".piolib" ]; then
rm -r .piolib
fi
if [ ! -z "$1" ]; then
if [ $1 = "--deep" ]; then
if [ -d "~/.platformio/packages" ]; then
rm -r ~/.platformio/packages/*
fi
if [ -d "~/.platformio/platforms" ]; then
rm -r ~/.platformio/platforms/*
fi
if [ -d "~/.platformio/.cache" ]; then
rm -r ~/.platformio/.cache/*
fi
fi
fi