fix bin/mmctl detection using printf (#13898)

The behaviour of `echo` [varies](https://stackoverflow.com/questions/8467424/echo-newline-in-bash-prints-literal-n) between operating systems. Use `printf` for maximum compatibility.
Этот коммит содержится в:
Jesse Hallam
2020-02-14 16:45:32 -04:00
коммит произвёл GitHub
родитель 3fc5287f6b
Коммит 7da85922af

Просмотреть файл

@@ -172,7 +172,7 @@ prepackaged-plugins: ## Populate the prepackaged-plugins directory
prepackaged-binaries: ## Populate the prepackaged-binaries to the bin directory
# Externally built binaries
ifeq ($(shell test -f bin/mmctl && echo -n yes),yes)
ifeq ($(shell test -f bin/mmctl && printf "yes"),yes)
@echo mmctl installed
else ifeq ($(PLATFORM),Darwin)
@echo Downloading prepackaged binary: https://github.com/mattermost/mmctl/releases/$(MMCTL_REL_TO_DOWNLOAD)