From fd903aa972e43b76eebe7baa236e91ceac044def Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Mon, 22 Mar 2021 23:36:11 +0300 Subject: get_token fix --- include.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include.sh b/include.sh index d00501c..482f911 100755 --- a/include.sh +++ b/include.sh @@ -6,7 +6,7 @@ STATUS_FILE="modem_status.xml" get_token() { curl -s -X GET "http://$MODEM_IP/api/webserver/SesTokInfo" > ses_tok.xml COOKIE=$(grep "SessionID=" ses_tok.xml | cut -b 10-147) - TOKEN=$(grep "TokInfo" ses_tok.xml | cut -b 10-41`) + TOKEN=$(grep "TokInfo" ses_tok.xml | cut -b 10-41) rm ses_tok.xml } -- cgit v1.2.3