mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 21:14:01 +08:00
* check
* test for dirty working tree
* swap order
* fix diff
old-commit-hash: df251ef50e
12 lines
220 B
Bash
Executable File
12 lines
220 B
Bash
Executable File
#!/usr/bin/bash
|
|
set -e
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
|
cd $DIR
|
|
|
|
if [ ! -z "$(git status --porcelain)" ]; then
|
|
echo "Dirty working tree after build:"
|
|
git status --porcelain
|
|
exit 1
|
|
fi
|