From 8be92d55525425d8805677539221486e8f5e3437 Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Fri, 12 Feb 2021 15:37:34 +0100 Subject: rolltarball.sh: Simplified G_USER detection Signed-off-by: Lars Wendler --- rolltarball.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rolltarball.sh b/rolltarball.sh index 26ccb20..456d3d5 100755 --- a/rolltarball.sh +++ b/rolltarball.sh @@ -339,7 +339,7 @@ fi if [ -z "${G_USER}" ] then - G_USER="$(git log --pretty=fuller -1 | grep '^Commit:' | sed 's&.*<\([[:alnum:]\._-]\+\)@.*>&\1&')" + G_USER="$(git log --pretty=fuller -1 | sed -n '/^Commit:/s&.*<\([[:alnum:]\._-]\+\)@.*>&\1&p')" einfo "Detected Gentoo Developer: ${G_USER}" fi -- cgit v1.2.3-65-gdbad