From fd5720e6d99566c4dafb65f135039772623f232b Mon Sep 17 00:00:00 2001 From: Fabian Freyer Date: Wed, 27 Aug 2014 00:52:18 +0200 Subject: scripts/crosstool-NG: use ${grep} instead of 'grep' Helps building on BSD-like systems. Reported-by: Fabian Freyer Signed-off-by: "Fabian Freyer" [yann.morin.1998@free.fr: split the original patch] Signed-off-by: "Yann E. MORIN" Cc: Fabian Freyer --- scripts/functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/functions') diff --git a/scripts/functions b/scripts/functions index cce629c5..a309f2d9 100644 --- a/scripts/functions +++ b/scripts/functions @@ -995,9 +995,9 @@ CT_ExtractGit() { if [ -z "${ref}" ]; then ref_type=head ref=$(git rev-list -n1 HEAD) - elif git tag |grep -E "^${ref}$" >/dev/null 2>&1; then + elif git tag |${grep} -E "^${ref}$" >/dev/null 2>&1; then ref_type=tag - elif git branch -a --no-color |grep -E "^. ${ref}$" >/dev/null 2>&1; then + elif git branch -a --no-color |${grep} -E "^. ${ref}$" >/dev/null 2>&1; then ref_type=branch elif date -d "${ref}" >/dev/null 2>&1; then ref_type=date -- cgit v1.2.3