Skip to content

Commit 9ad3660

Browse files
committed
test
1 parent 8e5f1d1 commit 9ad3660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/config.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function github_commit_exists(){ #github_commit_exists <repo-path> <branch-name>
110110
function github_last_commit(){ # github_last_commit <repo-path> <branch-name>
111111
local repo_path="$1"
112112
local branch_name="$2"
113-
local commit=`curl -s -k -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.v3.raw+json" "https://api.github.com/repos/$repo_path/commits/heads/$branch_name" | jq -r '.sha'`
113+
curl -s -k -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.v3.raw+json" "https://api.github.com/repos/$repo_path/commits/heads/$branch_name"
114114
if [ ! "$commit" == "" ] && [ ! "$commit" == "null" ]; then
115115
echo ${commit:0:8}
116116
else

0 commit comments

Comments
 (0)