Skip to content

Commit

Permalink
Use whoami instead of $USER
Browse files Browse the repository at this point in the history
Docker does not create the envrironment variable USER per
https://docs.docker.com/engine/reference/run/#environment-variables

Signed-off-by: Gera Shegalov <[email protected]>
  • Loading branch information
gerashegalov committed Mar 7, 2024
1 parent efd473c commit 0fd553a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/build-info
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0fd553a

Please sign in to comment.