aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/setlocalversion
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/setlocalversion')
-rwxr-xr-xscripts/setlocalversion3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/setlocalversion b/scripts/setlocalversion
index 4d403844e137..bd6dca8a0ab2 100755
--- a/scripts/setlocalversion
+++ b/scripts/setlocalversion
@@ -75,8 +75,7 @@ scm_version()
75 [ -w . ] && git update-index --refresh --unmerged > /dev/null 75 [ -w . ] && git update-index --refresh --unmerged > /dev/null
76 76
77 # Check for uncommitted changes 77 # Check for uncommitted changes
78 if git diff-index --name-only HEAD | grep -v "^scripts/package" \ 78 if git diff-index --name-only HEAD | grep -qv "^scripts/package"; then
79 | read dummy; then
80 printf '%s' -dirty 79 printf '%s' -dirty
81 fi 80 fi
82 81