This will now allow users that don't has right to
write the label but that has the right to read it
to be able to run the script when the label of the
group is already set to the expected value.
May solve the bug TT-51.
Change-Id: I867e787f7dc0dfea6c8838be71c3cb41d0505cf8
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
else
buxton_make_group "$layer" "$group" || return
fi
- [[ -z "$label" ]] || buxton_set_label "$layer" "$group" "$label"
+ if [[ -n "$label" ]] && [[ "$label" != "$(buxton_get_label "$layer" "$group")" ]]
+ then
+ buxton_set_label "$layer" "$group" "$label"
+ else
+ info "group $group in layer $layer already has label $label"
+ fi
}
buxton_ensure_ready() {