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
1 changed files with 10 additions and 0 deletions

View File

@ -485,6 +485,16 @@ printf "${magenta}details:borgXtraListPath ${norm}-- ${ok}[OK]${norm}\n" \
includeXtra=1
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