dsnap-sync: correct handling of selected_config pseudo-array

* assign/prepare snapper_active_$i='yes' to selected configs

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2018-10-01 11:44:19 +02:00
parent fcfe7bb223
commit 2275aac7e6

View File

@@ -27,7 +27,7 @@
# difference for the next incremental snapshot.
progname="${0##*/}"
version="0.6.1"
version="0.6.2"
# The following lines are modified by the Makefile or
# find_snapper_config script
@@ -2687,7 +2687,7 @@ verify_snapper_config () {
"$selected_uuid" "$selected_subvol" "$selected_config"
printf "Please cleanup for further processing.\n"
error "Skipping configuration $selected_config."
selected_configs=$(eval echo $selected_configs | sed -e "s/\($selected_config\)//")
$snapper_activate_$i="no"
continue
fi
fi