From: Andre Noll Date: Mon, 1 Sep 2014 22:20:21 +0000 (+0200) Subject: gui: Make $first a local variable of _get_subtree(). X-Git-Url: http://git.tuebingen.mpg.de/?p=gsu.git;a=commitdiff_plain;h=4e70cf69ed41bbf2cf1983cdae4ea3f6d2f1c684 gui: Make $first a local variable of _get_subtree(). Apparently this was missed when the function was introduced. The variable is only referenced in _get_subtree(). --- diff --git a/gui b/gui index db81f7f..336d154 100644 --- 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