Skip to content

Commit f1dfba6

Browse files
authored
Merge pull request #175 from github/mrchrisw/fix-ghe-url_url
Fix syntax error in commit-current-user-check.sh
2 parents 344dbf5 + 6a98607 commit f1dfba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre-receive-hooks/commit-current-user-check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ TOKEN=USER:TOKEN
2020
# We set the address of the GHE Instance here
2121
GHE_URL=https://GHE-INSTANCE
2222

23-
GITHUB_USER_EMAIL=`curl -s -k -u ${TOKEN} ${GHE URL}/api/v3/users/${GITHUB_USER_LOGIN} | grep email | sed 's/ \"email\"\: \"//' | sed 's/\",//'`
23+
GITHUB_USER_EMAIL=`curl -s -k -u ${TOKEN} ${GHE_URL}/api/v3/users/${GITHUB_USER_LOGIN} | grep email | sed 's/ \"email\"\: \"//' | sed 's/\",//'`
2424

2525
if echo "${GITHUB_USER_EMAIL}" | grep "null,"
2626
then

0 commit comments

Comments
 (0)