Number parsing typo
This commit is contained in:
parent
bae84edee5
commit
0ec4d3b168
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
FILE=$1
|
FILE=$1
|
||||||
echo $FILE
|
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
|
. 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')
|
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" ];
|
if [ -z "$AUTH_TOKEN" ];
|
||||||
|
|
Loading…
Reference in a new issue