projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9ef0e2
)
chopping username after @ character if present
author
Chris Koeritz
<cak0l@virginia.edu>
Fri, 21 Feb 2020 21:23:37 +0000
(16:23 -0500)
committer
Chris Koeritz
<cak0l@virginia.edu>
Fri, 21 Feb 2020 21:23:37 +0000
(16:23 -0500)
this fixes user names in the form of blah@someplace.email.dom to address redhat IDM style user names.
scripts/core/functions.sh
patch
|
blob
|
history
diff --git
a/scripts/core/functions.sh
b/scripts/core/functions.sh
index f13f4afeb83565738a042e42a051fc78ca38f826..19e4306c63e890259b94e2a18ca8187e8a91f9bc 100644
(file)
--- 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