OSDN Git Service
(root)
/
android-x86
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
daf7b54
)
envsetup: cmgerrit: fix for zsh
author
Khalid Zubair
<kzubair@cyngn.com>
Tue, 9 Feb 2016 00:54:01 +0000
(16:54 -0800)
committer
Steve Kondik
<steve@cyngn.com>
Sun, 4 Sep 2016 04:47:36 +0000
(21:47 -0700)
zsh does not define $FUNCNAME, define it for zsh when necessary.
Change-Id: I097d3e572b18c84d953ca03b3714271d1d2fd5c3
envsetup.sh
patch
|
blob
|
history
diff --git
a/envsetup.sh
b/envsetup.sh
index
c53305c
..
69b795f
100644
(file)
--- a/
envsetup.sh
+++ b/
envsetup.sh
@@
-1911,6
+1911,12
@@
function makerecipe() {
}
function cmgerrit() {
+
+ if [ "$(__detect_shell)" == "zsh" ]; then
+ # zsh does not define FUNCNAME, derive from funcstack
+ local FUNCNAME=$funcstack[1]
+ fi
+
if [ $# -eq 0 ]; then
$FUNCNAME help
return 1