From 0fd553a913ccfa2e70a9080a14da0938aef85fa6 Mon Sep 17 00:00:00 2001 From: Gera Shegalov Date: Wed, 6 Mar 2024 21:02:33 -0800 Subject: [PATCH] Use whoami instead of $USER Docker does not create the envrironment variable USER per https://docs.docker.com/engine/reference/run/#environment-variables Signed-off-by: Gera Shegalov --- build/build-info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build-info b/build/build-info index ff3836ff89..e5499351e6 100755 --- a/build/build-info +++ b/build/build-info @@ -27,7 +27,7 @@ echo_build_properties() { git_path=$2 shift 2 echo version=$version - echo user=$USER + echo user=$(whoami) echo revision=$(cd "$git_path" && git rev-parse HEAD) echo branch=$(cd "$git_path" && git rev-parse --abbrev-ref HEAD) echo date=$(date -u +%Y-%m-%dT%H:%M:%SZ)