#!/usr/bin/env bash
#
# Try to detect if the current repo has a main branch, or master.
set -e
if git branch -l | grep -q "main"; then
echo "main"
exit 0
fi
if git branch -l | grep -q "master"; then
echo "master"
exit 1