summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2021-02-12 15:37:34 +0100
committerLars Wendler <polynomial-c@gentoo.org>2021-02-12 15:37:34 +0100
commit8be92d55525425d8805677539221486e8f5e3437 (patch)
treef6ddff9d658d03f7a9f82b56fbb1e2886e1e811c
parent2.4/scripts/apache2-logrotate: handle systemd (diff)
downloadapache-8be92d55525425d8805677539221486e8f5e3437.tar.gz
apache-8be92d55525425d8805677539221486e8f5e3437.tar.bz2
apache-8be92d55525425d8805677539221486e8f5e3437.zip
rolltarball.sh: Simplified G_USER detection
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
-rwxr-xr-xrolltarball.sh2
1 files changed, 1 insertions, 1 deletions
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