Update mysqlbu-scripts.sh
This commit is contained in:
@@ -48,10 +48,18 @@ DELETE_BACKUP() {
|
|||||||
done
|
done
|
||||||
tba=`expr $tba + 1`
|
tba=`expr $tba + 1`
|
||||||
done
|
done
|
||||||
printf '%s\n' "${tbus[@]}"
|
|
||||||
sbu1=${tbus[$1]}
|
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
|
read -n 1 -p "Are you sure you wish to DELETE this backup (y/n)?" choice
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
[Yy])
|
[Yy])
|
||||||
|
|||||||
Reference in New Issue
Block a user