From ea606e0a9f7e4e840787ef841498b103dcbd5f71 Mon Sep 17 00:00:00 2001 From: AliReza Beitari Date: Sat, 25 Nov 2023 11:51:52 -0500 Subject: [PATCH] fix: other flags may not be combined with `--rollback` --- shepherd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shepherd b/shepherd index 45ffd97..1f63921 100755 --- a/shepherd +++ b/shepherd @@ -113,7 +113,7 @@ update_services() { if [[ "${ROLLBACK_ON_FAILURE+x}" ]]; then logger "Rolling $name back" # shellcheck disable=SC2086 - docker "${config_flag[@]}" service update "$name" $detach_option $registry_auth $no_resolve_image_flag ${ROLLBACK_OPTIONS} --rollback > /dev/null + docker "${config_flag[@]}" service update "$name" $detach_option ${ROLLBACK_OPTIONS} --rollback > /dev/null fi if [[ "$apprise_sidecar_url" != "" ]]; then title="[Shepherd] Service $name update failed on $hostname"