scripts: Detect staged files before building release
This commit is contained in:
@ -179,7 +179,7 @@ main() {
|
|||||||
|
|
||||||
# Verify the clean working tree
|
# Verify the clean working tree
|
||||||
# shellcheck disable=SC2155
|
# shellcheck disable=SC2155
|
||||||
local diff="$(git diff --stat)"
|
local diff="$(git diff HEAD --stat)"
|
||||||
if [[ "${diff}" != '' ]]; then
|
if [[ "${diff}" != '' ]]; then
|
||||||
log_error "Error: Expected clean working tree, but 'git diff --stat' reported: ${diff}"
|
log_error "Error: Expected clean working tree, but 'git diff --stat' reported: ${diff}"
|
||||||
exit 1
|
exit 1
|
||||||
|
Reference in New Issue
Block a user