check for non specified borgvars file

This commit is contained in:
Asif Bacchus 2020-03-26 02:49:20 -06:00
parent 4d1b3a2a65
commit 581f69f429

View File

@ -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."