projects
/
gsu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ce3fe9a
)
gui: Make $first a local variable of _get_subtree().
author
Andre Noll
<maan@tuebingen.mpg.de>
Mon, 1 Sep 2014 22:20:21 +0000
(
00:20
+0200)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Sat, 27 Sep 2014 23:02:00 +0000
(23:02 +0000)
Apparently this was missed when the function was introduced. The
variable is only referenced in _get_subtree().
gui
patch
|
blob
|
history
diff --git
a/gui
b/gui
index db81f7fd1c308d84cc6691791de13b248bc2e305..336d1547ad6366af9dd3cb481cd0a29b87d08167 100644
(file)
--- a/
gui
+++ b/
gui
@@
-79,7
+79,7
@@
_get_level()
_get_subtree()
{
local tree="$1" root="${2%/}"
_get_subtree()
{
local tree="$1" root="${2%/}"
- local
TAB='
'
+ local
first TAB='
'
first="$(grep -n "$TAB\{1,\}$root/" <<< "$tree")"
[[ -z "$first" ]] && return
first="$(grep -n "$TAB\{1,\}$root/" <<< "$tree")"
[[ -z "$first" ]] && return