]> git.tue.mpg.de Git - gsu.git/commitdiff
gui: Make $first a local variable of _get_subtree().
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 1 Sep 2014 22:20:21 +0000 (00:20 +0200)
committerAndre 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

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%/}"
-       local TAB='     '
+       local first TAB='       '
 
        first="$(grep -n "$TAB\{1,\}$root/" <<< "$tree")"
        [[ -z "$first" ]] && return