Skip to content

Commit 49ec8c0

Browse files
committed
Update Examples/eg001EmbeddedSigning.sh
1 parent 10ed78b commit 49ec8c0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Examples/eg001EmbeddedSigning.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ echo "EnvelopeId: ${ENVELOPE_ID}"
9999
# For this example, we'll use http://httpbin.org/get to show the
100100
# query parameters passed back from DocuSign
101101

102-
echo "Request the url for the signing ceremony..."
102+
echo ""
103+
echo "Requesting the url for the signing ceremony..."
103104
curl --header "Authorization: Bearer {ACCESS_TOKEN}" \
104105
--header "Content-Type: application/json" \
105106
--data-binary '
@@ -118,15 +119,15 @@ echo "Response:"
118119
cat $response
119120
echo ""
120121

121-
REDIRECT_URL=`cat $response | grep url | sed 's/.*\"url\": \"//' | sed 's/\"//' | tr -d '\r'`
122+
SIGNING_CEREMONY_URL=`cat $response | grep url | sed 's/.*\"url\": \"//' | sed 's/\"//' | tr -d '\r'`
122123
echo ""
123124
echo "Attempting to automatically open your browser to the signing ceremony url..."
124125
if which open > /dev/null 2>/dev/null
125126
then
126-
open "$REDIRECT_URL"
127+
open "$SIGNING_CEREMONY_URL"
127128
elif which start > /dev/null
128129
then
129-
start "$REDIRECT_URL"
130+
start "$SIGNING_CEREMONY_URL"
130131
fi
131132

132133
# cleanup

0 commit comments

Comments
 (0)