From 581f69f42956e4979d01099c3783c11f0a4cb323 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 26 Mar 2020 02:49:20 -0600 Subject: [PATCH] check for non specified borgvars file --- borghelper.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/borghelper.sh b/borghelper.sh index aecf914..d9acb9a 100644 --- a/borghelper.sh +++ b/borghelper.sh @@ -116,6 +116,11 @@ if [ -z "$operation" ]; then consoleError 1 'Nothing to do!' fi +# no borg information file +if [ -z "$varsFile" ]; then + consoleError 1 'You must provide a valid .borgvars file with information about your borg repo.' +fi + # list without archive if [ "$operation" = 'list' ] && [ -z "$archiveName" ]; then consoleError 1 "List operation requested but no archive name provided. Please use '--list-all' for a list of all available archives."