From 217fc658ff15c7dc00e61d90b13cd84b0adc63b1 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Sun, 6 Dec 2020 22:05:08 +0300 Subject: . --- vsvs-locate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vsvs-locate') diff --git a/vsvs-locate b/vsvs-locate index 009eccc..5015529 100644 --- a/vsvs-locate +++ b/vsvs-locate @@ -4,7 +4,7 @@ after () { test -z "${2##*$1*}" && echo -n "${2#*$1}"; } test "${1::1}" == "/" && path=$base || path="." lastpath=$1 -until test -n "$lastpath" || test -f "$path" +until test -z "$lastpath" || test -f "$path" do path="$path/${lastpath%%/*}" lastpath=$(after / "$lastpath") -- cgit v1.2.3