Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Commit a2f2adf

Browse files
committed
Making the linter happy
1 parent ef1e159 commit a2f2adf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mariadb-backup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ then
151151
if [[ "${TARBALL^^}" != "" ]]
152152
then
153153
RESTORE_DIR=${TARBALL}
154-
rm -rf ${RESTORE_DIR}
154+
rm -rf "${RESTORE_DIR}"
155155
echo "===> Restoring database from ${RESTORE_DIR}..."
156156
exec su -pc "tar -xvf ${TARBALL}.tgz ${RESTORE_DIR} && myloader --directory=${RESTORE_DIR} ${CLI_OPTIONS}" ${USER}
157157
else
158158
if [[ -z "${RESTORE_DIR}" ]]
159159
then
160160
printf "===> No RESTORE_DIR set, trying to find latest backup... "
161-
RESTORE_DIR=$(ls -t | head -1)
161+
RESTORE_DIR=$(find . -maxdepth 1)
162162
if [[ -n "${RESTORE_DIR}" ]]
163163
then
164164
echo "DONE"

0 commit comments

Comments
 (0)