Skip to content

Commit e5c6f94

Browse files
committed
Enhance debug output for ROLE variable to indicate if it is empty
1 parent b46a74f commit e5c6f94

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

azure/components/aws-assume-role.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ steps:
1919
displayName: get role name
2020
2121
- bash: |
22-
echo "[DEBUG] ROLE value: $(ROLE)"
23-
displayName: "Debug ROLE value"
22+
if [ -z "$(ROLE)" ]; then
23+
echo "[DEBUG] ROLE is empty"
24+
else
25+
echo "[DEBUG] ROLE value: $(ROLE)"
26+
fi
27+
displayName: "Debug ROLE value (empty or not)"
2428
2529
- bash: |
2630
set -e

0 commit comments

Comments
 (0)