fix: Switch from echo to prinf for more consistent behaviour
In different environments echo seems to handle escape characters differently. When generating the common constraints file, on some systems it outputs the "\n" character as-is. This change switches echo to printf, which is supposed to be more consistent.
This commit is contained in:
2
Makefile
2
Makefile
@@ -117,7 +117,7 @@ COMMON_CONSTRAINTS_TXT=requirements/common_constraints.txt
|
||||
.PHONY: $(COMMON_CONSTRAINTS_TXT)
|
||||
$(COMMON_CONSTRAINTS_TXT):
|
||||
wget -O "$(@)" https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt || touch "$(@)"
|
||||
echo "$(COMMON_CONSTRAINTS_TEMP_COMMENT)" | cat - $(@) > temp && mv temp $(@)
|
||||
printf "$(COMMON_CONSTRAINTS_TEMP_COMMENT)" | cat - $(@) > temp && mv temp $(@)
|
||||
|
||||
compile-requirements: export CUSTOM_COMPILE_COMMAND=make upgrade
|
||||
compile-requirements: pre-requirements $(COMMON_CONSTRAINTS_TXT) ## Re-compile *.in requirements to *.txt
|
||||
|
||||
Reference in New Issue
Block a user