fix: build on FreeBSD and non-Linux platforms (#2332)

This commit is contained in:
Yonas Yanfa 2023-02-06 12:34:25 -05:00 committed by GitHub
parent 11e9202160
commit 60d1e2d291
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
SHELL := /bin/bash SHELL := /usr/bin/env bash
DATE ?= $(shell date +%FT%T%z) DATE ?= $(shell date +%FT%T%z)
BASE_PATH := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) BASE_PATH := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
VERSION ?= $(shell git describe --tags --always --match=v* 2> /dev/null || \ VERSION ?= $(shell git describe --tags --always --match=v* 2> /dev/null || \
@ -25,4 +25,4 @@ RESET := $(shell tput -Txterm sgr0)
define global_option define global_option
printf " ${YELLOW}%-20s${GREEN}%s${RESET}\n" $(1) $(2) printf " ${YELLOW}%-20s${GREEN}%s${RESET}\n" $(1) $(2)
endef endef