Fix borg check prefix settings

This commit is contained in:
Clemens Schwaighofer
2022-04-18 15:58:03 +09:00
parent 2ae05f5302
commit dffb7c6450

View File

@@ -345,8 +345,8 @@ if [ ${CHECK} -eq 1 ]; then
OPT_GLOB="";
if [[ "${CHECK_PREFIX}" =~ $REGEX_GLOB ]]; then
OPT_GLOB="-a '${CHECK_PREFIX}'"
else
OPT_GLOB="-p ${CHECK_PREFIX}";
elif [ ! -z "${CHECK_PREFIX}" ]; then
OPT_GLOB="-P ${CHECK_PREFIX}";
fi;
# debug/dryrun
if [ ${DEBUG} -eq 1 ] || [ ${DRYRUN} -eq 1 ]; then