From de4a3c8f2f4758fcc102cbeb8f13754a6c37a769 Mon Sep 17 00:00:00 2001 From: lguohan Date: Wed, 30 Dec 2020 04:58:20 -0800 Subject: [PATCH] [build]: change user name to lower case when used in sonic-slave tag (#6319) sonic-slave tag only allows all lower case. In case the user name is mixed case, we need to change user name to all lower case. Signed-off-by: Guohan Lu --- Makefile.work | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.work b/Makefile.work index 8703a13d0..294a6c9c5 100644 --- a/Makefile.work +++ b/Makefile.work @@ -45,6 +45,7 @@ SHELL = /bin/bash USER := $(shell id -un) PWD := $(shell pwd) +USER_LC := $(shell echo $(USER) | tr A-Z a-z) comma := , @@ -100,7 +101,7 @@ SLAVE_BASE_IMAGE = $(SLAVE_DIR) else SLAVE_BASE_IMAGE = $(SLAVE_DIR)-$(CONFIGURED_ARCH) endif -SLAVE_IMAGE = $(SLAVE_BASE_IMAGE)-$(USER) +SLAVE_IMAGE = $(SLAVE_BASE_IMAGE)-$(USER_LC) # Generate the version control build info $(shell SONIC_VERSION_CONTROL_COMPONENTS=$(SONIC_VERSION_CONTROL_COMPONENTS) \