From 5db43663d5427b1b2745cff5f350192a22d7b670 Mon Sep 17 00:00:00 2001 From: Adam Lee Date: Mon, 26 Oct 2020 14:09:19 +0800 Subject: [PATCH] Fix a shell issue of empty string If the $(UBUNTU_PLATFORM) is an empty string, the test command will fail, double quotes it to fix. ``` --- mock for platform /bin/sh: line 0: [: =: unary operator expected ``` --- gpMgmt/bin/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpMgmt/bin/Makefile b/gpMgmt/bin/Makefile index 4571c71a64..d530636711 100644 --- a/gpMgmt/bin/Makefile +++ b/gpMgmt/bin/Makefile @@ -148,7 +148,7 @@ pylint: $(MOCK_BIN): @echo "--- mock for platform $(UBUNTU_PLATFORM)" - @if [ $(UBUNTU_PLATFORM) = "Ubuntu" ]; then\ + @if [ "$(UBUNTU_PLATFORM)" = "Ubuntu" ]; then\ pip install mock;\ else\ mkdir -p $(PYTHONSRC_INSTALL_SITE) && \ -- GitLab