Skip to content

Commit 56dd2b8

Browse files
author
nianiB9
committed
error handling
1 parent b0204db commit 56dd2b8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/Maestro/lib/utils.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ if [ -z "$TEMPLATE_ID" ]; then
1717
bash ./examples/eSignature/eg008CreateTemplate.sh
1818
fi
1919

20+
TEMPLATE_ID=$(cat config/TEMPLATE_ID)
21+
if [ -z "$TEMPLATE_ID" ]; then
22+
echo "please create a worklow before running this example"
23+
exit 0
24+
fi
25+
2026
TEMPLATE_ID=$(cat config/TEMPLATE_ID)
2127

2228
echo "Creating a new workflow"

0 commit comments

Comments
 (0)