pantry/scripts/clean-all.sh

20 lines
223 B
Bash
Raw Normal View History

2022-09-08 23:40:35 +03:00
#!/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