We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffc3adb commit 394d3cfCopy full SHA for 394d3cf
src/common/auth-utils.sh
@@ -363,7 +363,7 @@ class handler(BaseHTTPRequestHandler):
363
self.wfile.write(bytes(message, "utf8"))
364
365
with HTTPServer(('', ${server_port_check_refresh_token}), handler) as server:
366
- server.serve_forever()
+ server.handle_request()
367
EOF
368
_tmp_server_pid="${!}"
369
elif command -v nc 1> /dev/null; then
@@ -384,7 +384,7 @@ EOF
384
385
"${QUIET:-_print_center}" "normal" " Press enter if you have completed the process in browser" "-"
386
read -r _
387
- kill "${_tmp_server_pid}"
+ kill "${_tmp_server_pid}" 1>| /dev/null 2>&1 || :
388
389
if ! authorization_code="$(grep -m1 'GET.*code.*HTTP/1.1' < "${TMPFILE}.code" | sed -e 's/.*GET.*code=//' -e 's/\&.*//')" &&
390
_assert_regex "${authorization_code_regex}" "${authorization_code}"; then
0 commit comments