Update mysqlbu-scripts.sh

This commit is contained in:
2019-01-07 21:11:27 -06:00
parent ec8dee25c5
commit 22ae8aba65

View File

@@ -64,11 +64,10 @@ DELETE_BACKUP() {
fi
echo ""
isbase=${sbu1a: -5}
echo "here: '${isbase}'"
echo ${sbu1a: -5}
echo "here: '${sbu1a[5]: -5}'"
echo ${sbu1a[5]: -5}
echo ""
if [ ${#1} = 1 ] || [ "${isbase}" = "_BASE" ]; then
if [ ${#1} = 1 ] || [ "${sbu1a[5]: -5}" = "_BASE" ]; then
echo -e "${idsCL[Red]}(This is a daily base backup, and will result in the full day being DELETED.)"${idsCL[Default]}
delbu="/${sbu1a[1]}/${sbu1a[2]}/${sbu1a[3]}/${sbu1a[4]}"
else