Skip to content

Commit 8f875d3

Browse files
Update eg001CreateWorkspace.sh
Signed-off-by: CassandraLoewen <[email protected]>
1 parent 97fa347 commit 8f875d3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/Workspaces/eg001CreateWorkspace.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,11 @@ echo ""
5959

6060
# Pull out the workspace ID and save it
6161
workspace_id=`cat $response | grep workspace_id | sed 's/.*\"workspace_id\":\"//' | sed 's/".*//'`
62-
echo "Workspace created! ID: ${workspace_id}"
62+
workspace_creator_id=$(grep -o -m 1 '"created_by_user_id":"[^"]*"' "$response" | \
63+
sed 's/.*"created_by_user_id":"\([^"]*\)".*/\1/')
64+
echo "Workspace created by user ${workspace_creator_id}! Workspace ID: ${workspace_id}"
6365
echo ${workspace_id} > config/WORKSPACE_ID
66+
echo ${workspace_creator_id} > config/WORKSPACE_CREATOR_ID
6467

6568
rm "$response"
66-
rm "$request_data"
69+
rm "$request_data"

0 commit comments

Comments
 (0)