postgresql-citus-patroni-image/scripts/python-rm-cache.sh
2024-12-04 21:17:59 +03:00

10 lines
194 B
Bash
Executable File

#!/bin/sh
set -f
for i ; do
[ -n "$i" ] || continue
[ -d "$i" ] || continue
find "$i/" -name __pycache__ -exec rm -rf {} +
find "$i/" ! -type d -name '*.py[co]' -exec rm -f {} +
done
exit 0