Merge branch 'develop' into dist/eole/2.7.0/develop

This commit is contained in:
vincent 2019-02-21 16:38:57 +01:00
commit 09a8e23ba2
1 changed files with 12 additions and 9 deletions

View File

@ -11,6 +11,8 @@ script="$1"
function clean_backups() function clean_backups()
{ {
file=${1} file=${1}
ls ${file}_* > /dev/null 2>&1
if [ $? = 0 ]; then
bcks=($(ls ${file}_*)) bcks=($(ls ${file}_*))
nbbck=$(expr ${#bcks[@]} - 2) nbbck=$(expr ${#bcks[@]} - 2)
@ -23,6 +25,7 @@ function clean_backups()
rm -f ${bcks[${idx}]} rm -f ${bcks[${idx}]}
done done
fi fi
fi
} }
function updateDB() function updateDB()