You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
496 B
Bash
30 lines
496 B
Bash
#!/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
|