Skip to content

Commit 9cb98eb

Browse files
author
Sven Speckmaier
committed
fixed find_last_backup mask and added -d
1 parent 9002893 commit 9cb98eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entrypoint

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ TARGET_PREFIX="/target"
1515
DATA_DIRECTORY="/var/lib/mysql"
1616

1717
find_last_full_backup() {
18-
FILES=( $(ls $TARGET/full-????-??-??) )
18+
FILES=( $(ls -d $TARGET/full-????-??-??-??????) )
1919
echo ${FILES[-1]}
2020
}
2121

@@ -326,7 +326,7 @@ case $1 in
326326
echo "======================================================================"
327327
echo ""
328328

329-
FILES=( $(ls $TARGET/full-????-??-??) )
329+
FILES=( $(ls -d $TARGET/full-????-??-??-??????) )
330330
exit 0
331331
;;
332332
run)

0 commit comments

Comments
 (0)