From 4e70cf69ed41bbf2cf1983cdae4ea3f6d2f1c684 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 2 Sep 2014 00:20:21 +0200 Subject: [PATCH] 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(). --- gui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2