File tree Expand file tree Collapse file tree
sdm/src/test/java/integration/com/sap/cds/sdm/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ TOKEN_RESPONSE=$(curl -s -X POST "${authUrl}/oauth/token" \
7474
7575ACCESS_TOKEN= $( echo " $TOKEN_RESPONSE " \
7676 | grep -o ' "access_token":"[^"]*"' \
77- | sed ' s/"access_token":"//;s/"$//' )
77+ | sed ' s/"access_token":"//;s/"$//' || true )
7878
7979if [[ -z " $ACCESS_TOKEN " ]]; then
8080 echo " ERROR: Failed to obtain access token."
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ TOKEN_RESPONSE=$(curl -s -X POST "${authUrl}/oauth/token" \
6767
6868ACCESS_TOKEN= $( echo " $TOKEN_RESPONSE " \
6969 | grep -o ' "access_token":"[^"]*"' \
70- | sed ' s/"access_token":"//;s/"$//' )
70+ | sed ' s/"access_token":"//;s/"$//' || true )
7171
7272if [[ -z " $ACCESS_TOKEN " ]]; then
7373 echo " ERROR: Failed to obtain access token."
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ TOKEN_RESPONSE=$(curl -s -X POST "${authUrl}/oauth/token" \
6666
6767ACCESS_TOKEN= $( echo " $TOKEN_RESPONSE " \
6868 | grep -o ' "access_token":"[^"]*"' \
69- | sed ' s/"access_token":"//;s/"$//' )
69+ | sed ' s/"access_token":"//;s/"$//' || true )
7070
7171if [[ -z " $ACCESS_TOKEN " ]]; then
7272 echo " ERROR: Failed to obtain access token." >&2
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ TOKEN_RESPONSE=$(curl -s -X POST "${authUrl}/oauth/token" \
7272
7373ACCESS_TOKEN= $( echo " $TOKEN_RESPONSE " \
7474 | grep -o ' "access_token":"[^"]*"' \
75- | sed ' s/"access_token":"//;s/"$//' )
75+ | sed ' s/"access_token":"//;s/"$//' || true )
7676
7777if [[ -z " $ACCESS_TOKEN " ]]; then
7878 echo " ERROR: Failed to obtain access token."
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ TOKEN_RESPONSE=$(curl -s -X POST "${authUrl}/oauth/token" \
6666
6767ACCESS_TOKEN= $( echo " $TOKEN_RESPONSE " \
6868 | grep -o ' "access_token":"[^"]*"' \
69- | sed ' s/"access_token":"//;s/"$//' )
69+ | sed ' s/"access_token":"//;s/"$//' || true )
7070
7171if [[ -z " $ACCESS_TOKEN " ]]; then
7272 echo " ERROR: Failed to obtain access token."
You can’t perform that action at this time.
0 commit comments