From 401ccc470537b41ab29cc7692f603ed8fc266542 Mon Sep 17 00:00:00 2001 From: Christopher Fremond <34804391+Frenchris@users.noreply.github.com> Date: Tue, 29 Mar 2022 16:41:59 +0100 Subject: [PATCH] Update to-git-or-not-to-git.sh testing --- sh/tests/solutions/to-git-or-not-to-git.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sh/tests/solutions/to-git-or-not-to-git.sh b/sh/tests/solutions/to-git-or-not-to-git.sh index 9bf263552..397bd0f91 100755 --- a/sh/tests/solutions/to-git-or-not-to-git.sh +++ b/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