Only throw away error but keep stdout

This commit is contained in:
Luke Murphy 2021-03-04 13:20:45 +01:00
parent 0bbff91722
commit 5931cbd791
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

2
abra
View File

@ -904,7 +904,7 @@ sub_app_deploy (){
CONSENT_TO_UPDATE=$abra___update CONSENT_TO_UPDATE=$abra___update
deployed_version_digest=$(docker service inspect \ deployed_version_digest=$(docker service inspect \
-f "{{index .Spec.Labels \"coop-cloud.${STACK_NAME}.version\" }}" "${STACK_NAME}_app" > /dev/null 2>&1) -f "{{index .Spec.Labels \"coop-cloud.${STACK_NAME}.version\" }}" "${STACK_NAME}_app" 2>/dev/null)
deployed_version=$(echo "$deployed_version_digest" | cut -d- -f1) deployed_version=$(echo "$deployed_version_digest" | cut -d- -f1)
deployed_digest=$(echo "$deployed_version_digest" | cut -d- -f2) deployed_digest=$(echo "$deployed_version_digest" | cut -d- -f2)