We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a808837 commit b36b6d6Copy full SHA for b36b6d6
bin/login-hedgedoc-via-gitlab.sh
@@ -126,8 +126,12 @@ function step4-5() {
126
-H 'Upgrade-Insecure-Requests: 1' \
127
-b $cookie -c $cookie \
128
--insecure)
129
-
+ echo $body
130
link=$(echo $body | grep window.location | perl -ne 'print "$1\n" if /.*?window.location= "(.+?)";/')
131
+ # if not found, try to parse again
132
+ if [ -z "$link" ]; then
133
+ link=$(echo $body | grep window.location | perl -ne 'print "$1\n" if /.*?let redirectUri = "(.+?)";/')
134
+ fi
135
echo "WILL REDIRECT TO $link "
136
137
0 commit comments