Skip to content

Commit b1fe553

Browse files
committed
Update version validation script
1 parent 1a1bbc5 commit b1fe553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/version_validate_git.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if ! git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
3333
fi
3434

3535
# Check for uncommitted changes
36-
if ! git diff-index --quiet HEAD --; then
36+
if [ -n "$(git status --porcelain)" ]; then
3737
echo "Error: Git repository is dirty. There are uncommitted changes."
3838
exit 1
3939
fi

0 commit comments

Comments
 (0)