check if exclusion list has been specified

This commit is contained in:
Asif Bacchus 2019-05-27 03:17:08 -06:00
parent d7a8d0ce28
commit 2b66d9e118

View File

@ -485,6 +485,16 @@ printf "${magenta}details:borgXtraListPath ${norm}-- ${ok}[OK]${norm}\n" \
includeXtra=1 includeXtra=1
fi fi
## check if exlusion list file is specified
if [ -n "${borgExcludeListPath}" ]; then
# check if the file actually exists
if [ ! -f "${borgExcludeListPath}" ]; then
badDetails dne 'borgExcludeListPath'
fi
exclusions=1
fi