Skip to content

Commit

Permalink
Fix update-swift-syntax.sh script (realm#4604)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsim authored Nov 29, 2022
1 parent 97ba82d commit e405d3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/update-swift-syntax.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euo pipefail

readonly old_commit="$(grep "apple/swift-syntax" Package.swift | sed -nr 's/.*revision: \"([a-f0-9]{40})\"),$/\1/p')"
readonly old_commit="$(grep "apple/swift-syntax" Package.swift | sed -nr 's/.*revision: \"([a-f0-9]{40})\"\),$/\1/p')"
if [ $# -eq 0 ]; then
readonly new_commit="$(curl -s -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.VERSION.sha" "https://api.github.com/repos/apple/swift-syntax/commits/main")"
else
Expand Down

0 comments on commit e405d3d

Please sign in to comment.