We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97fa347 commit 8f875d3Copy full SHA for 8f875d3
examples/Workspaces/eg001CreateWorkspace.sh
@@ -59,8 +59,11 @@ echo ""
59
60
# Pull out the workspace ID and save it
61
workspace_id=`cat $response | grep workspace_id | sed 's/.*\"workspace_id\":\"//' | sed 's/".*//'`
62
-echo "Workspace created! ID: ${workspace_id}"
+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}"
65
echo ${workspace_id} > config/WORKSPACE_ID
66
+echo ${workspace_creator_id} > config/WORKSPACE_CREATOR_ID
67
68
rm "$response"
-rm "$request_data"
69
+rm "$request_data"
0 commit comments