Update mysqlbu-scripts.sh

This commit is contained in:
2019-01-07 09:23:55 -06:00
parent bb62425533
commit 665a6ac4dc

View File

@@ -48,10 +48,18 @@ DELETE_BACKUP() {
done
tba=`expr $tba + 1`
done
printf '%s\n' "${tbus[@]}"
sbu1=${tbus[$1]}
echo -e "Backup selected: ${sbu1}"
if [ ${#1} = 1 ]; then
tdt=`echo ${sbu1} | sed 's/.*\///'`
echo -e "Backup selected: ${idsCL[LightYellow]}`date -d"${tdt}" +"%a, %B %d, %Y"`${idsCL[Default]}"
else
fi
echo ""
read -n 1 -p "Are you sure you wish to DELETE this backup (y/n)?" choice
case "$choice" in
[Yy])