From 6f87a9e91a78e0d4c108ba4ce6a2e72b9f2b3cb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Zolt=C3=A1n?= Date: Mon, 1 Sep 2025 12:41:00 +0200 Subject: [PATCH] rotate_folder now correctly handles configuration file pathnames containing spaces. --- .metadata | Bin 15851 -> 15851 bytes .templates/bin/rotate_folder | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.metadata b/.metadata index bb2bcc82dea4b435c2063e975383e7c59c61f27c..b3b084de86f72487c91a29d84dba5e2b31f05028 100644 GIT binary patch delta 77 zcmaD|{knQXGaHZTq38?-AkZ(U;ha2COmy;j1J%tZ**2;3TqxfPmYE~?M{TmArs(AT e{L-7Z>z(6e$>E=!F # Kovács Zoltán # License: GNU/GPL v3+ (https://www.gnu.org/licenses/gpl-3.0.en.html) +# 2025-08-12 v1.2 +# fix: now correctly handles configuration file pathnames containing spaces. # 2025-03-06 v1.1 # new: added the --noconf option which prevents reading and creating # the configuration file. @@ -143,7 +145,7 @@ then echo -e "$MSG_BADFOLDER $BACKUP_FOLDER" >&2; exit 1; fi # Applies the configuration (if it exists and if it doesn't need to be ignored). BACKUP_CONF="$BACKUP_FOLDER/.$("$BASENAME" "$0").conf" if [ "$NOCONF" = "yes" ]; then : -elif [ -r $BACKUP_CONF ]; then . "$BACKUP_CONF" +elif [ -r "$BACKUP_CONF" ]; then . "$BACKUP_CONF" else # Warns about failure. echo -e "$MSG_NOCONF $BACKUP_CONF"