list: Clear /tmp of list files before starting

This commit is contained in:
tschettervictor
2025-05-12 05:27:02 -06:00
committed by GitHub
parent dcd60268fe
commit e29855f7fd

View File

@@ -665,6 +665,9 @@ while [ "$#" -gt 0 ]; do
esac
done
# Clear tmp directory
rm -rf /tmp/bastille_list_*
# Perform basic list if no args
if [ "$#" -eq 0 ]; then
# List json format, otherwise list all jails