filter out additional garbage input from ls-remote

master
BuckarooBanzay 2020-09-25 08:28:31 +02:00
parent ef8662dedd
commit e069ba0a28
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ GITHUB_REPO_URL=https://${access_token}@github.com/minetest-mirrors/${github_rep
# fetch commit-checksums
LOCAL_SHA=$(git ls-remote "${GITHUB_REPO_URL}" ${branch} | cut -f1)
REMOTE_SHA=$(git ls-remote "${source_repo}" ${branch} | cut -f1)
REMOTE_SHA=$(git ls-remote "${source_repo}" ${branch} | head -n1 | cut -f1)
echo "Local sha: ${LOCAL_SHA} (${github_repo})"
echo "Remote sha: ${REMOTE_SHA} (${source_repo})"