Fix borg remote path usage
This commit is contained in:
parent
7e7653518e
commit
642796f85b
1 changed files with 5 additions and 1 deletions
|
|
@ -29,7 +29,11 @@ configure_environment() {
|
|||
|
||||
# optional variables
|
||||
local indexed_var_name="BORG_REMOTE_PATH_${index}"
|
||||
export BORG_REMOTE_PATH="${!indexed_var_name}"
|
||||
if [[ -n "${!indexed_var_name}" ]]; then
|
||||
export BORG_REMOTE_PATH="${!indexed_var_name}"
|
||||
else
|
||||
unset BORG_REMOTE_PATH
|
||||
fi
|
||||
|
||||
[[ $all_vars_set == true ]]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue