12 lines
202 B
Bash
Executable File
12 lines
202 B
Bash
Executable File
#!/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
|