From a4173a73d2fced6e8cf8d9914995e5359b29599c Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Fri, 21 Feb 2020 16:23:37 -0500 Subject: [PATCH] chopping username after @ character if present this fixes user names in the form of blah@someplace.email.dom to address redhat IDM style user names. --- scripts/core/functions.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index f13f4afe..19e4306c 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -515,6 +515,8 @@ if [ -z "$skip_all" ]; then # if the user has sudo root access; we don't want to provide a custom # profile for root. fi + # chop off any email address style formatting to leave just the name. + custom_user="$(echo "$custom_user" | cut -f1 -d'@')" save_terminal_title -- 2.34.1