#!/bin/bash changed_api_extracts=$(git status | grep API.md | wc -l) if [[ changed_api_extracts -gt 0 ]]; then echo "Detected api change. Please run 'yarn extract-api' and add API.md file changes to the change set." git status | grep API.md exit 1; fi