snap-sync: correct bug in snapper config handling

- exclude sync for given config, if we find multiple instances
  of already synced snapshots

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2018-01-19 14:29:20 +01:00
parent 4824959c2c
commit 22954982cb

View File

@@ -510,7 +510,7 @@ run_config () {
"$selected_uuid" "$selected_subvol" "$selected_config"
printf "Please cleanup for further processing.\n" | tee PIPE
error "Skipping configuration $selected_config."
selected_configs=$(echo $selected_configs | sed -e "s/\($selected_config*\)//")
selected_configs=$(echo $selected_configs | sed -e "s/\($selected_config\)//")
continue
fi
fi