From: Radoslaw Korzeniewski Date: Tue, 17 Apr 2018 09:23:38 +0000 (+0200) Subject: Fix 'grep -m' when '-m' option is not available. X-Git-Tag: Release-9.2.0~107 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=35456e475a2caf17cef370bcbeafd8d31f7ac488;p=thirdparty%2Fbacula.git Fix 'grep -m' when '-m' option is not available. --- diff --git a/regress/scripts/setup b/regress/scripts/setup index 549de86d3a..0ffac8087b 100755 --- a/regress/scripts/setup +++ b/regress/scripts/setup @@ -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