From: Chris Koeritz Date: Fri, 21 Feb 2020 21:23:37 +0000 (-0500) Subject: chopping username after @ character if present X-Git-Tag: 2.140.134~28^2~10 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=28bfb9b06bf809ccb1d3c04fd7e34602484e15fd;p=feisty_meow.git 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. --- 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