From 2b829d22cc26d032d8e778080f3294e99567cfc5 Mon Sep 17 00:00:00 2001 From: Steve McIntyre Date: Sun, 21 Feb 2021 15:40:07 +0000 Subject: Fix bashisms in Make.coverity Not everybody uses bash as /bin/sh, and the scripting here is safe just using single brackets. Signed-off-by: Steve McIntyre <93sam@debian.org> --- Make.coverity | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Make.coverity b/Make.coverity index 996e826e..a897aa0a 100644 --- a/Make.coverity +++ b/Make.coverity @@ -12,7 +12,7 @@ cov-int-all : clean cov-clean : @rm -vf $(NAME)-coverity-*.tar.* - @if [[ -d cov-int ]]; then rm -rf cov-int && echo "removed 'cov-int'"; fi + @if [ -d cov-int ]; then rm -rf cov-int && echo "removed 'cov-int'"; fi cov-file : | $(COV_FILE) @@ -20,9 +20,9 @@ $(COV_FILE) : | cov-int tar caf $@ cov-int cov-upload : - @if [[ -n "$(COV_URL)" ]] && \ - [[ -n "$(COV_TOKEN)" ]] && \ - [[ -n "$(COV_EMAIL)" ]] ; \ + @if [ -n "$(COV_URL)" ] && \ + [ -n "$(COV_TOKEN)" ] && \ + [ -n "$(COV_EMAIL)" ] ; \ then \ echo curl --form token=$(COV_TOKEN) --form email="$(COV_EMAIL)" --form file=@"$(COV_FILE)" --form version=$(VERSION).1 --form description="$(COMMIT_ID)" "$(COV_URL)" ; \ curl --form token=$(COV_TOKEN) --form email="$(COV_EMAIL)" --form file=@"$(COV_FILE)" --form version=$(VERSION).1 --form description="$(COMMIT_ID)" "$(COV_URL)" ; \ -- cgit v1.2.3