10 lines
221 B
Plaintext
10 lines
221 B
Plaintext
|
#!/bin/zsh
|
||
|
|
||
|
# Check if we should use the `main` or `master` branch for this repo.
|
||
|
# Prefer `main` to `master`.
|
||
|
|
||
|
if git show-ref --quiet origin/main || git rev-parse main &>/dev/null; then
|
||
|
echo main
|
||
|
else
|
||
|
echo master
|
||
|
fi
|