Update mysqlbu-scripts.sh

This commit is contained in:
2019-01-07 09:14:22 -06:00
parent 2c9dd86ad8
commit bb62425533

View File

@@ -38,6 +38,7 @@ ADD_CRONTAB(){
}
DELETE_BACKUP() {
declare -A tbus
tba=1
for day in $BACKUP_PATH* ; do
tbus[${tba}]=$day
tbb=0
@@ -47,7 +48,7 @@ DELETE_BACKUP() {
done
tba=`expr $tba + 1`
done
printf '%s\n' "${tbus[@]}"
sbu1=${tbus[$1]}
echo -e "Backup selected: ${sbu1}"