From da2184ef536b0770bf08b9f88f38572e55e83571 Mon Sep 17 00:00:00 2001 From: Wenxuan Zhao Date: Thu, 14 Dec 2017 21:13:33 -0800 Subject: [PATCH] Fix: Use Single Bracket --- Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index c6b5804a0c..90e178239b 100644 --- a/Makefile +++ b/Makefile @@ -18,23 +18,23 @@ $(CHANGE_FILE): git --no-pager diff $(TRAVIS_BRANCH) FETCH_HEAD --no-renames --name-status > $@ rule-source-added: - [[ $(shell grep '^A\s\+sources/' $(CHANGE_FILE) | wc -l) -ge 1 ]] + [ $(shell grep '^A\s\+sources/' $(CHANGE_FILE) | wc -l) -ge 1 ] echo 'Rule Matched: $(@)' rule-translation-requested: - [[ $(shell grep '^M\s\+sources/' $(CHANGE_FILE) | wc -l) = 1 ]] + [ $(shell grep '^M\s\+sources/' $(CHANGE_FILE) | wc -l) = 1 ] echo 'Rule Matched: $(@)' rule-translation-completed: - [[ $(shell grep '^D\s\+sources/' $(CHANGE_FILE) | wc -l) = 1 ]] - [[ $(shell grep '^A\s\+translated/' $(CHANGE_FILE) | wc -l) = 1 ]] + [ $(shell grep '^D\s\+sources/' $(CHANGE_FILE) | wc -l) = 1 ] + [ $(shell grep '^A\s\+translated/' $(CHANGE_FILE) | wc -l) = 1 ] echo 'Rule Matched: $(@)' rule-translation-revised: - [[ $(shell grep '^M\s\+translated/' $(CHANGE_FILE) | wc -l) = 1 ]] + [ $(shell grep '^M\s\+translated/' $(CHANGE_FILE) | wc -l) = 1 ] echo 'Rule Matched: $(@)' rule-translation-published: - [[ $(shell grep '^D\s\+translated/' $(CHANGE_FILE) | wc -l) = 1 ]] - [[ $(shell grep '^A\s\+published/' $(CHANGE_FILE) | wc -l) = 1 ]] + [ $(shell grep '^D\s\+translated/' $(CHANGE_FILE) | wc -l) = 1 ] + [ $(shell grep '^A\s\+published/' $(CHANGE_FILE) | wc -l) = 1 ] echo 'Rule Matched: $(@)'