From 8fcabb3d748468eb773d0ef125809a9b29ab44b9 Mon Sep 17 00:00:00 2001 From: Steve McIntyre <93sam@debian.org> Date: Sat, 4 Nov 2023 17:54:17 +0000 Subject: [PATCH] Remove bashisms in Make fragments Signed-off-by; Steve McIntyre <93sam@debian.org> --- Make.coverity | 8 ++++---- Make.scan-build | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Make.coverity b/Make.coverity index b80b091c..456b71bd 100644 --- a/Make.coverity +++ b/Make.coverity @@ -12,7 +12,7 @@ cov-int : 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)" ; \ diff --git a/Make.scan-build b/Make.scan-build index 6cdae214..6a133670 100644 --- a/Make.scan-build +++ b/Make.scan-build @@ -11,7 +11,7 @@ SCAN_RANLIB = $(CROSS_COMPILE)llvm-ranlib scan-test : ; $(SCAN_BUILD_ERROR) scan-clean : clean - @if [[ -d scan-results ]]; then rm -rf scan-results && echo "removed 'scan-results'"; fi + @if [ -d scan-results ]; then rm -rf scan-results && echo "removed 'scan-results'"; fi scan-build : | scan-test scan-build : clean