summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-03-22 23:36:11 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-03-22 23:36:11 +0300
commitfd903aa972e43b76eebe7baa236e91ceac044def (patch)
tree1afdccfcbc894082b6c0dc10cb6745589a0bd470
parent10d083d0b4bd0e02cef80ba13735c06ddedfccc6 (diff)
get_token fix
-rwxr-xr-xinclude.sh2
1 files changed, 1 insertions, 1 deletions
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
}