mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Test for uncommited changes in and out of index
This commit is contained in:
parent
e7189041ee
commit
f3d3656fe6
@ -40,8 +40,8 @@ VERSION_MAJOR="${BASH_REMATCH[1]}"
|
||||
VERSION_MINOR="${BASH_REMATCH[2]}"
|
||||
VERSION_PATCH="${BASH_REMATCH[3]}"
|
||||
|
||||
if ! git diff-index --quiet --cached HEAD; then
|
||||
echo "!!! You must not have any changes in your index when running this command"
|
||||
if ! git diff HEAD --quiet; then
|
||||
echo "!!! You must not have any uncommitted changes when running this command"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user