pantry/scripts/clean-all.sh
2022-09-08 16:40:35 -04:00

20 lines
No EOL
223 B
Bash
Executable file

#!/usr/bin/env -S tea -E
_="
---
args: /bin/sh
---
"
ROOTS=$(ls /opt/tea.xyz/var/pantry/projects)
for x in $ROOTS
do
if [ "X$x" = "X" ]
then
continue
fi
rm -rf /opt/"$x"
done
rm /opt/tea.xyz/var/www/*.tar.?z