From ae576f82fd988bde7ec1ae84093fa50b1e8ff750 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Thu, 27 Apr 2017 09:46:17 +0100 Subject: [PATCH] repo-list: use $((...)) instead of let Signed-off-by: Alejandro Mery --- files/bin/repo-list | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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#./}"