git://git.iain.cx/iain
/
profile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid bash 4 code.
[profile.git]
/
.profile.d
/
git-commit-tree.bashrc
diff --git
a/.profile.d/git-commit-tree.bashrc
b/.profile.d/git-commit-tree.bashrc
index
37ec8eb
..
f1aca2c
100644
(file)
--- a/
.profile.d/git-commit-tree.bashrc
+++ b/
.profile.d/git-commit-tree.bashrc
@@
-1,11
+1,11
@@
# Set GIT_AUTHOR_NAME etc from dotfiles in the profile.
function git_commit_tree() {
local WHO=$1; shift
# Set GIT_AUTHOR_NAME etc from dotfiles in the profile.
function git_commit_tree() {
local WHO=$1; shift
- local who=
${WHO,,}
+ local who=
"$(echo $WHO | tr '[[:upper:]]' '[[:lower:]]')"
local WHAT=
for WHAT in EMAIL NAME; do
local WHAT=
for WHAT in EMAIL NAME; do
- local what=
${WHAT,,}
+ local what=
"$(echo $WHAT | tr '[[:upper:]]' '[[:lower:]]')"
local where=
# Look in $HOME then $PROFILE_HOME.
local where=
# Look in $HOME then $PROFILE_HOME.