We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8a83b5 commit cb9741eCopy full SHA for cb9741e
scripts/get-github-token.sh
@@ -45,9 +45,9 @@ get_github_token() {
45
local curl_exit=$?
46
47
if [[ $curl_exit -eq 0 ]]; then
48
- http_code=$(echo "$response" | tail -n1)
+ http_code=$(echo "$response" | tail -n 1)
49
local token
50
- token=$(echo "$response" | head -n-1 | jq -r ".value" 2>/dev/null)
+ token=$(echo "$response" | sed '$d' | jq -r ".value" 2>/dev/null)
51
52
if [[ "$token" != "null" && -n "$token" ]]; then
53
echo "$token"
0 commit comments