From eee212f80e5aab834261614fd2a0b14829c09765 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 29 Nov 2017 08:56:31 -0800 Subject: [PATCH] repo: fix loop when repo is not installed --- .bin/r | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bin/r b/.bin/r index 24fc5e4..dd4cd6b 100755 --- a/.bin/r +++ b/.bin/r @@ -54,7 +54,7 @@ mj_finish() { repo_root() { local root=${PWD} - while [[ ! -d ${root}/.repo && ${root} != "/" ]] ; do + while [[ ! -d ${root}/.repo && ${root:-/} != "/" ]] ; do root=${root%/*} done echo "${root}" -- 2.39.5