fix -delete

This commit is contained in:
olli 2024-12-25 13:31:36 +01:00
parent 0181800430
commit 0652ef3a7e

View File

@ -78,7 +78,7 @@ do
fi
# clean old data
[ ${FULL_LOOP} = 1 ] && find asset-histories -maxdepth 1 ! -type d ! -name "*.csv" ! -name "*.levels" ! -name "*.zones" ! -name "*.indicators-calculated" -mtime +1
[ ${FULL_LOOP} = 1 ] && find asset-histories -maxdepth 1 ! -type d ! -name "*.csv" ! -name "*.levels" ! -name "*.zones" ! -name "*.indicators-calculated" -mtime +1 -delete
# Get current balance
[ ${FULL_LOOP} = 1 ] && get_balance || continue