Skip to content

Commit deb8d91

Browse files
committed
Accept new user email address as-is. Do not transform to lowercase. Resolves PR #3.
1 parent f77217b commit deb8d91

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

changeauthor.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# the rewritten history and rebase any local changes into the rewritten history.
99
#
1010

11-
VERSION="v2.3.0"
11+
VERSION="v2.3.1"
1212

1313
# Set Defaults
1414
SHOW_HELP=0
@@ -67,15 +67,15 @@ while (("$#")); do
6767
# USER_NEW_EMAIL
6868
-e | --new-email)
6969
if [ "$2" ]; then
70-
USER_NEW_EMAIL=$(echo "$2" | awk "{print tolower(\$0)}")
70+
USER_NEW_EMAIL="$2"
7171
shift # Remove argument name from processing
7272
else
7373
echo "${COLOR_RED}ERROR: Value for $1 is required."${COLOR_RESET} >&2
7474
exit 1
7575
fi
7676
;;
7777
-e=*? | --new-email=*?)
78-
USER_NEW_EMAIL=$(echo "${1#*=}" | awk "{print tolower(\$0)}")
78+
USER_NEW_EMAIL="${1#*=}"
7979
;;
8080
# USER_NEW_NAME
8181
-n | --new-name)
@@ -319,7 +319,7 @@ if [ -z "$USER_NEW_EMAIL" ]; then
319319
exit 1
320320
else
321321
# Set USER_NEW_EMAIL and transform to lowercase
322-
USER_NEW_EMAIL=$(echo "$USER_NEW_EMAIL" | awk "{print tolower(\$0)}")
322+
USER_NEW_EMAIL="${USER_NEW_EMAIL}"
323323
fi
324324

325325
if [ "$USER_OLD_EMAIL" == "$USER_NEW_EMAIL" ]; then

0 commit comments

Comments
 (0)