Skip to content

Commit cb9741e

Browse files
BUILD-9518: Add support for macos in cache action (#19)
1 parent e8a83b5 commit cb9741e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/get-github-token.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ get_github_token() {
4545
local curl_exit=$?
4646

4747
if [[ $curl_exit -eq 0 ]]; then
48-
http_code=$(echo "$response" | tail -n1)
48+
http_code=$(echo "$response" | tail -n 1)
4949
local token
50-
token=$(echo "$response" | head -n-1 | jq -r ".value" 2>/dev/null)
50+
token=$(echo "$response" | sed '$d' | jq -r ".value" 2>/dev/null)
5151

5252
if [[ "$token" != "null" && -n "$token" ]]; then
5353
echo "$token"

0 commit comments

Comments
 (0)