From 32a3ee5c1c199cc2cc0958d72ebd9001b2da7f6b Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 11 Sep 2023 04:30:55 +0200 Subject: [PATCH] setup/git.sh: fix non-portable sed invocation This lets xbps-src work in non-GNU environments. --- common/environment/setup/git.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/environment/setup/git.sh b/common/environment/setup/git.sh index bd72f2eae3f07..3417e9ec1898a 100644 --- a/common/environment/setup/git.sh +++ b/common/environment/setup/git.sh @@ -18,7 +18,7 @@ elif [ -z "${SOURCE_DATE_EPOCH}" ]; then export SOURCE_DATE_EPOCH="$(stat -c %Y ${XBPS_SRCPKGDIR}/${basepkg}/template)" else export SOURCE_DATE_EPOCH=$($XBPS_GIT_CMD -C ${XBPS_DISTDIR} cat-file commit HEAD | - sed -n '/^committer /{s/.*> \([0-9][0-9]*\) [-+][0-9].*/\1/p;q}') + grep '^committer '|sed 's/.*> \([0-9][0-9]*\) [-+][0-9].*/\1/') fi fi