Skip to content

Commit

Permalink
minor syntax changes to ci-find-smithy-go.sh (#2236)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeee authored Aug 22, 2023
1 parent 4599f78 commit 172e427
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ci-find-smithy-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [ -z "$RUNNER_TMPDIR" ]; then
exit 1
fi

branch=`git branch --show-current`
branch=$(git branch --show-current)
if [ "$branch" == main ]; then
echo aws-sdk-go-v2 is on branch main, stop
exit 0
Expand All @@ -38,10 +38,10 @@ fi

echo on branch \"$branch\"
while [ -n "$branch" ] && [[ "$branch" == *-* ]]; do
echo looking for $branch...
git ls-remote --exit-code --heads $repository refs/heads/$branch
echo looking for "$branch"...
git ls-remote --exit-code --heads "$repository" refs/heads/"$branch"
if [ "$?" == 0 ]; then
echo found $branch
echo found "$branch"
matched_branch=$branch
break
fi
Expand All @@ -54,5 +54,5 @@ if [ -z "$matched_branch" ]; then
exit 0
fi

git clone -b $matched_branch $repository $RUNNER_TMPDIR/smithy-go
git clone -b "$matched_branch" "$repository" "$RUNNER_TMPDIR"/smithy-go
SMITHY_GO_SRC=$RUNNER_TMPDIR/smithy-go make gen-mod-replace-smithy-.

0 comments on commit 172e427

Please sign in to comment.