Skip to content

Commit cbf65fb

Browse files
adapted to Labfolder API chage
1 parent e8039d8 commit cbf65fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ then
5555
# curl failed, now check for the reason
5656
PROJECTS=`curl -s -u "$TOKEN:" -G "https://$LABFOLDER_HOST/api/v2/projects?limit=&offset="`
5757
MESSAGE=`echo $PROJECTS | jq -r '.message'`
58-
if [[ $MESSAGE == "Invalid token" ]]
58+
if [[ $MESSAGE == "INVALID_TOKEN" ]]
5959
then
6060
#invalid token, so get a new one
6161
echo "No valid labfolder token found. Aquriring new one."

0 commit comments

Comments
 (0)