We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 344dbf5 commit 6a98607Copy full SHA for 6a98607
1 file changed
pre-receive-hooks/commit-current-user-check.sh
@@ -20,7 +20,7 @@ TOKEN=USER:TOKEN
20
# We set the address of the GHE Instance here
21
GHE_URL=https://GHE-INSTANCE
22
23
-GITHUB_USER_EMAIL=`curl -s -k -u ${TOKEN} ${GHE URL}/api/v3/users/${GITHUB_USER_LOGIN} | grep email | sed 's/ \"email\"\: \"//' | sed 's/\",//'`
+GITHUB_USER_EMAIL=`curl -s -k -u ${TOKEN} ${GHE_URL}/api/v3/users/${GITHUB_USER_LOGIN} | grep email | sed 's/ \"email\"\: \"//' | sed 's/\",//'`
24
25
if echo "${GITHUB_USER_EMAIL}" | grep "null,"
26
then
0 commit comments