Browse Source

Update to-git-or-not-to-git.sh

testing
update-quest-08-exercises-description-c-150
Christopher Fremond 2 years ago committed by GitHub
parent
commit
401ccc4705
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      sh/tests/solutions/to-git-or-not-to-git.sh

7
sh/tests/solutions/to-git-or-not-to-git.sh

@ -1,7 +1,4 @@
#!/usr/bin/env bash
echo test
echo $DOMAIN
echo $USERNAME
curl -s "https://$DOMAIN/api/graphql-engine/v1/graphql" --data '{"query":"{user(where:{login:{_eq:\"'$USERNAME'\"}}){id}}"}' | jq '.data.user[0].id'
response=$(curl -s "https://$DOMAIN/api/graphql-engine/v1/graphql" --data '{"query":"{user(where:{login:{_eq:\"'$USERNAME'\"}}){id}}"}' | jq '.data.user[0].id')
echo $response

Loading…
Cancel
Save