rotate_folder now correctly handles configuration file pathnames containing spaces.
This commit is contained in:
@@ -55,6 +55,8 @@
|
||||
# Author: Kovács Zoltán <kovacs.zoltan@smartfront.hu>
|
||||
# Kovács Zoltán <kovacsz@marcusconsulting.hu>
|
||||
# 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"
|
||||
|
Reference in New Issue
Block a user