diff --git a/files/bin/repo-list b/files/bin/repo-list index 4523455..ab8c42b 100755 --- a/files/bin/repo-list +++ b/files/bin/repo-list @@ -8,7 +8,8 @@ ls_r() { local x= d= shift 2 - let count-- || return + count=$(($count - 1)) + [ $count -gt 0 ] || return [ ! -e "$base/.git" ] || echo "${base#./}"