home-assistant-core/script/check_dirty
Paulus Schoutsen 5a22e7d211
Fail if dirty (#16839)
* Fail if dirty

* Update check_dirty

* Update text

* Fix comment

* Add -e

* Update dirty script
2018-09-25 20:47:51 +02:00

8 lines
238 B
Bash
Executable file

#!/bin/bash
[[ -z $(git ls-files --others --exclude-standard) ]] && exit 0
echo -e '\n***** ERROR\nTests are leaving files behind. Please update the tests to avoid writing any files:'
git ls-files --others --exclude-standard
echo
exit 1