mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
Fail if dirty (#16839)
* Fail if dirty * Update check_dirty * Update text * Fix comment * Add -e * Update dirty script
This commit is contained in:
7
script/check_dirty
Executable file
7
script/check_dirty
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/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
|
Reference in New Issue
Block a user