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.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3fc5287f6b
Коммит
7da85922af
2
Makefile
2
Makefile
@@ -172,7 +172,7 @@ prepackaged-plugins: ## Populate the prepackaged-plugins directory
|
|||||||
|
|
||||||
prepackaged-binaries: ## Populate the prepackaged-binaries to the bin directory
|
prepackaged-binaries: ## Populate the prepackaged-binaries to the bin directory
|
||||||
# Externally built binaries
|
# 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
|
@echo mmctl installed
|
||||||
else ifeq ($(PLATFORM),Darwin)
|
else ifeq ($(PLATFORM),Darwin)
|
||||||
@echo Downloading prepackaged binary: https://github.com/mattermost/mmctl/releases/$(MMCTL_REL_TO_DOWNLOAD)
|
@echo Downloading prepackaged binary: https://github.com/mattermost/mmctl/releases/$(MMCTL_REL_TO_DOWNLOAD)
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user