Skip to content

Commit e37c50b

Browse files
authored
Merge pull request #136 from docusign/fixed-confusion-for-template-id
Added seperate file to store seperate template ids
2 parents 00fadf4 + 43e6d19 commit e37c50b

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

examples/Maestro/lib/utils.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,15 @@ echo "This script uses the package uuidgen to create unique ids for workflow fie
1111
echo "Press the enter key to continue."
1212
read continue
1313

14-
TEMPLATE_ID=$(cat config/TEMPLATE_ID)
15-
if [ -z "$TEMPLATE_ID" ]; then
16-
echo "Creating template"
17-
bash ./examples/eSignature/eg008CreateTemplate.sh
18-
fi
14+
echo "Creating template"
15+
bash ./examples/eSignature/eg008CreateTemplate.sh
1916

2017
TEMPLATE_ID=$(cat config/TEMPLATE_ID)
2118
if [ -z "$TEMPLATE_ID" ]; then
2219
echo "please create a worklow before running this example"
2320
exit 0
2421
fi
2522

26-
TEMPLATE_ID=$(cat config/TEMPLATE_ID)
2723

2824
echo "Creating a new workflow"
2925

examples/WebForms/lib/createWebFormTemplate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ if [ -n "${TEMPLATE_ID}" ]; then
4343

4444
# Save the template id for use by other scripts
4545
if [ ! -f config/TEMPLATE_ID ]; then
46-
echo "Saving the template ID to the config/TEMPLATE_ID file."
46+
echo "Saving the template ID to the config/WEB_FORM_TEMPLATE_ID file."
4747
fi
48-
echo "${TEMPLATE_ID}" > config/TEMPLATE_ID
48+
echo "${TEMPLATE_ID}" > config/WEB_FORM_TEMPLATE_ID
4949

5050
rm "$response"
5151
echo ""

0 commit comments

Comments
 (0)