summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vsvs-locate2
1 files changed, 1 insertions, 1 deletions
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")