mirror of
https://github.com/ossf/scorecard.git
synced 2024-11-04 03:52:31 +03:00
13 lines
222 B
Plaintext
13 lines
222 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
set -euo pipefail
|
||
|
|
||
|
STATUS=$(git status --porcelain)
|
||
|
if [[ -z $STATUS ]]; then
|
||
|
echo tree is clean
|
||
|
else
|
||
|
echo tree is dirty, please commit all changes
|
||
|
echo "$STATUS"
|
||
|
git diff
|
||
|
exit 1
|
||
|
fi
|