Skip to content

Instantly share code, notes, and snippets.

@KyMidd

KyMidd/asdf.sh Secret

Last active March 25, 2023 02:11
Show Gist options
  • Select an option

  • Save KyMidd/8e64a76dca0344b6599c2b31cdf4d71a to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/8e64a76dca0344b6599c2b31cdf4d71a to your computer and use it in GitHub Desktop.
if [[ $(echo "$ALL_BRANCHES" | grep -E "^master$") ]]; then
branch_protections_rest BRANCH='master'
fi
if [[ $(echo "$ALL_BRANCHES" | grep -E "^develop$") ]]; then
branch_protections_rest BRANCH='develop'
fi
if [[ $(echo "$ALL_BRANCHES" | grep -E "^main$") ]]; then
branch_protections_rest BRANCH='main'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment