File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ class handler(BaseHTTPRequestHandler):
363363 self.wfile.write(bytes(message, "utf8"))
364364
365365with HTTPServer(('', ${server_port_check_refresh_token} ), handler) as server:
366- server.serve_forever ()
366+ server.handle_request ()
367367EOF
368368 _tmp_server_pid=" ${! } "
369369 elif command -v nc 1> /dev/null; then
384384
385385 " ${QUIET:- _print_center} " " normal" " Press enter if you have completed the process in browser" " -"
386386 read -r _
387- kill " ${_tmp_server_pid} "
387+ kill " ${_tmp_server_pid} " 1> | /dev/null 2>&1 || :
388388
389389 if ! authorization_code=" $( grep -m1 ' GET.*code.*HTTP/1.1' < " ${TMPFILE} .code" | sed -e ' s/.*GET.*code=//' -e ' s/\&.*//' ) " &&
390390 _assert_regex " ${authorization_code_regex} " " ${authorization_code} " ; then
You can’t perform that action at this time.
0 commit comments