SolarFM/src/versions/solarfm-0.0.1/clear_pycache_dirs.sh

13 lines
297 B
Bash
Raw Normal View History

2021-10-10 06:45:55 +00:00
#!/bin/bash
# set -o xtrace ## To debug scripts
# set -o errexit ## To exit on error
# set -o errunset ## To exit if a variable is referenced but not set
function main() {
find . -name "__pycache__" -exec rm -rf $1 {} \;
find . -name "*.pyc" -exec rm -rf $1 {} \;
}
main