summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/lt1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/lt b/bin/lt
index f09f3b7..2a182f7 100755
--- a/bin/lt
+++ b/bin/lt
@@ -36,6 +36,7 @@ ca() {
pp() {
pp_s=$1 pp_b=$2 R1=''
while true; do
+ ! [ "$pp_s" ] && R1='' && return
[ "$pp_b" = "$pp_s" ] && break
pp_s=${pp_s%/*}
[ "$R1" ] && R1=$R1/.. || R1=..