From: Fred Hamster Date: Mon, 16 Dec 2024 21:34:31 +0000 (-0500) Subject: last cleanup i hope X-Git-Tag: 2.140.189^2~68 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=62c633bf77793e8b104e296bad4ec4d01f60f4b8;p=feisty_meow.git last cleanup i hope --- diff --git a/scripts/core/variables.sh b/scripts/core/variables.sh index 758d92ea..3304ba79 100644 --- a/scripts/core/variables.sh +++ b/scripts/core/variables.sh @@ -43,7 +43,8 @@ return 0 export SANITIZED_USER function sanitized_username() { if [ -z "$SANITIZED_USER" ]; then - export SANITIZED_USER="$(echo "$USER" | sed -e 's/@[a-zA-Z0-9_.]*//')" +#old inefficient... export SANITIZED_USER="$(echo "$USER" | sed -e 's/@[a-zA-Z0-9_.]*//')" + export SANITIZED_USER="${USER//@*/}" fi echo -n "$SANITIZED_USER" }