Use consistent and less error-prone find rm's

This commit is contained in:
2024-01-23 10:31:30 -05:00
parent b994e1a26c
commit 0adec2be0d
7 changed files with 19 additions and 12 deletions

5
debian/pvc-daemon-common.preinst vendored Normal file
View File

@ -0,0 +1,5 @@
#!/bin/sh
# Remove any cached CPython directories or files
echo "Cleaning up CPython caches"
find /usr/share/pvc/daemon_lib -type d -name "__pycache__" -exec rm -fr {} + &>/dev/null || true