#!/usr/bin/env bash ( set -e set -x ./check.sh "$@" ) || exit 1 if ! (git branch --show-current | grep -q -E '^main$'); then echo "Current git branch is not main." exit 1 fi # Get version line from Cargo.toml. version_line=$(grep -E '^\s*version\s*=\s*".*"\s*$'