client: declare variable earlier
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
This commit is contained in:
parent
767d509390
commit
d532ac83da
|
@ -193,6 +193,9 @@ sync() {
|
||||||
printf "" > "${RSYNC_STATSFILE}"
|
printf "" > "${RSYNC_STATSFILE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Initialize variable here, we need it later
|
||||||
|
local -a mtree_files=()
|
||||||
|
|
||||||
if [ "${MTREE_ENABLED}" = "1" ]; then
|
if [ "${MTREE_ENABLED}" = "1" ]; then
|
||||||
mtree_bin=$(command -v mtree)
|
mtree_bin=$(command -v mtree)
|
||||||
|
|
||||||
|
@ -200,10 +203,7 @@ sync() {
|
||||||
# Dump filesystem stats with mtree
|
# Dump filesystem stats with mtree
|
||||||
log "SYNC_TASKS - start mtree"
|
log "SYNC_TASKS - start mtree"
|
||||||
|
|
||||||
local -a mtree_files=()
|
|
||||||
|
|
||||||
# Loop over Rsync includes
|
# Loop over Rsync includes
|
||||||
|
|
||||||
for i in "${!rsync_includes[@]}"; do
|
for i in "${!rsync_includes[@]}"; do
|
||||||
include="${rsync_includes[i]}"
|
include="${rsync_includes[i]}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue