You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2019/08/06 15:27:14 UTC

[couchdb] 01/01: Fix bash-ism in EUnit retry logic

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch fix-bashism-in-eunit-retry
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit f19bdf1963cee66b048a736bbd6e62c70ddf87c2
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Tue Aug 6 11:25:54 2019 -0400

    Fix bash-ism in EUnit retry logic
    
    Bash has `let` but other shells might not have it.
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index ed22509..f5d15d4 100644
--- a/Makefile
+++ b/Makefile
@@ -176,7 +176,7 @@ eunit: couch
                 if [ $$? -eq 0 ]; then \
                     break; \
                 else \
-                    let "tries=tries+1"; \
+                    tries=$$((tries+1)); \
                     [ $$tries -gt 2 ] && exit 1; \
                 fi \
             done \