Skip to content

Commit e22f341

Browse files
committed
fix bash brackets formatting
1 parent 38a62d5 commit e22f341

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/update-brew-package.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ jobs:
5252
echo "old sha: $old_sha new sha: $sha"
5353
sed -i 's/${{ env.old_sha }}/${{ env.sha }}/' ./Formula/smol-k8s-lab.rb && grep sha ./Formula/smol-k8s-lab.rb
5454
55-
if [ $(git diff --exit-code ./Formula/smol-k8s-lab.rb) -ne 0]; then
55+
export file_changed=$(git diff --exit-code ./Formula/smol-k8s-lab.rb)
56+
if [ $file_changed -ne 0 ]; then
5657
echo -e "\n--------------------------------------------"
5758
echo -e "tagging and pushing to main branch\n"
5859
git tag ${{ steps.upstreamRelease.outputs.release }}

0 commit comments

Comments
 (0)