]> Frank Brehm's Git Trees - pixelpark/admin-tools.git/commitdiff
Fixing clean_old_backups() in bin/manual-backup
authorFrank Brehm <frank@brehm-online.com>
Tue, 14 Jan 2025 08:54:59 +0000 (09:54 +0100)
committerFrank Brehm <frank@brehm-online.com>
Tue, 14 Jan 2025 08:54:59 +0000 (09:54 +0100)
bin/manual-backup

index 2b0ab62b02d0d9d485014545dea969114edc5399..b9a267181032855f148ec7229c36775a3b2ad1d8 100755 (executable)
@@ -542,7 +542,7 @@ clean_old_backups() {
             continue
         fi
 
-        if [[ "${bdir_base}" =~ ^20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]$ ]] ; then
+        if [[ "${bdir_base}" =~ ^20[0-9][0-9]-[0-9][0-9]-[0-9][0-9](\.[0-9][0-9]*)?$ ]] ; then
             :
         else
             continue