]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix 'grep -m' when '-m' option is not available.
authorRadoslaw Korzeniewski <radekk@inteos.pl>
Tue, 17 Apr 2018 09:23:38 +0000 (11:23 +0200)
committerRadosław Korzeniewski <radekk@inteos.pl>
Fri, 20 Apr 2018 11:26:33 +0000 (13:26 +0200)
regress/scripts/setup

index 549de86d3a5f0d44c3578ecf21c7b5303f18c8ca..0ffac8087b4a2e30c588c06660a2d6d9eb5cb8ec 100755 (executable)
@@ -37,7 +37,7 @@ check_exit_code
 if [ x$PREBUILT != xyes ]; then
   which git >/dev/null 2>/dev/null
   if [ $? = 0 ] ; then
-    git show HEAD | grep -m 1 commit | awk '{print $2}' > build/git-version
+    git show HEAD | grep commit | hread -1 | awk '{print $2}' > build/git-version
   else
     echo "Git not found." >build/git-version
   fi