Skip to content

Commit 6a98607

Browse files
authored
Fix syntax error in commit-current-user-check.sh
The variable "GHE_URL" was quoted incorrectly as "GHE URL"
1 parent 344dbf5 commit 6a98607

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)