correction upgrade de la base

This commit is contained in:
Emmanuel Garette 2019-02-21 16:37:15 +01:00
parent 91d54ac412
commit 24aff2dd05

View File

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