Skip to content

Commit

Permalink
update.sh: print commit msg when not pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
erikarvstedt committed Jan 18, 2024
1 parent 2850871 commit f3ef222
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions dev/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,12 @@ fi
# Create commit and push to upstream
if [[ $dry_run ]]; then
git checkout HEAD -- ../zig-release.nix
elif [[ $push ]]; then
git commit -m "update to Zig \`$master_version\` [auto]"
git push upstream master
else
commit_msg="update to Zig \`$master_version\`"
if [[ $push ]]; then
git commit -m "$commit_msg [auto]"
git push upstream master
else
echo "$commit_msg"
fi
fi

0 comments on commit f3ef222

Please sign in to comment.