client: replace rm ** by find -delete
All checks were successful
continuous-integration/drone/push Build is passing
gitea/evobackup/pipeline/head This commit looks good

** has no particular meaning in bash unless shopt globstar is
set (it isn't by default).
This commit is contained in:
Alexis Ben Miloud--Josselin 2022-12-12 16:06:58 +01:00
parent ca4fe4ffb5
commit e3a969f3e2

View file

@ -76,7 +76,7 @@ local_tasks() {
# rm -rf ${LOCAL_BACKUP_DIR}/mysql
# rm -rf ${LOCAL_BACKUP_DIR}/mysqlhotcopy
# rm -rf /home/mysqldump
# rm -f ${LOCAL_BACKUP_DIR}/*.err ${LOCAL_BACKUP_DIR}/**/*.err
# find ${LOCAL_BACKUP_DIR}/ -type f -name '*.err' -delete
## example with global and compressed mysqldump
# mysqldump --defaults-extra-file=/etc/mysql/debian.cnf -P 3306 \