#!/bin/sh APISNAP=api.snap.txt ./scripts/api_snapshot lishwist/core > core/$APISNAP git diff --quiet core/$APISNAP if [[ $? -ne 0 ]]; then echo "There are unstaged changes to $APISNAP" exit 1 fi