Number parsing typo

This commit is contained in:
Gandalf 2021-03-04 18:15:26 +01:00
parent bae84edee5
commit 0ec4d3b168

View file

@ -2,7 +2,7 @@
FILE=$1
echo $FILE
REC=$(echo $2 | sed -e 's:[^0-9]::g' -e 's:^0\([1-9]\):+49\1:')
REC=$(echo $2 | sed -e 's:[^+0-9]::g' -e 's:^0\([1-9]\):+49\1:')
. login_credentials.sh
AUTH_TOKEN=$(echo $(curl --request POST --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: application/json' --data-urlencode client_id=sipgate-app-web --data-urlencode grant_type=password --data-urlencode username=$SIPUSER --data-urlencode password=$SIPPWD https://api.sipgate.com/login/sipgate-apps/protocol/openid-connect/token -s | jq '.access_token') | sed 's/\"//g')
if [ -z "$AUTH_TOKEN" ];