From 2b66d9e118ff804c639255e73323ee1f3a5fb258 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Mon, 27 May 2019 03:17:08 -0600 Subject: [PATCH] check if exclusion list has been specified --- backup_new.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/backup_new.sh b/backup_new.sh index 2669087..fff1e0d 100755 --- a/backup_new.sh +++ b/backup_new.sh @@ -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 + +