]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - scripts/setlocalversion
setlocalversion: Use "grep -q" instead of piping output to "read dummy"
[~shefty/rdma-dev.git] / scripts / setlocalversion
index 4d403844e137a59f53f032bc4972a35e86b2327f..bd6dca8a0ab23b78e0499a8868ec08bdb92e48f3 100755 (executable)
@@ -75,8 +75,7 @@ scm_version()
                [ -w . ] && git update-index --refresh --unmerged > /dev/null
 
                # Check for uncommitted changes
-               if git diff-index --name-only HEAD | grep -v "^scripts/package" \
-                   | read dummy; then
+               if git diff-index --name-only HEAD | grep -qv "^scripts/package"; then
                        printf '%s' -dirty
                fi