Skip to content

Commit dd6b40c

Browse files
authored
Use printf for generating version.go (#933)
Flag -e is to "enable interpretation of backslash escapes" Which might be a default, depends on a shell. `sh -c 'echo "a\nb"'` on my OS prints > a\nb (no newline) ## Launch Checklist <!-- Thanks for the PR! Feel free to add or remove items from the checklist. --> - [x] Briefly describe the changes in this PR.
1 parent 687f9ab commit dd6b40c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

desktop/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ $(GOBIN)/rice:
3232
# Embed the current version number in the executable by writing version.go
3333
.PHONY: version.go
3434
version.go:
35-
@echo "// DO NOT EDIT: Autogenerated by Makefile\n" > version.go
36-
@echo "package main\n" >> version.go
37-
@echo "const Version = \"$(VERSION)\"" >> version.go
35+
@printf "// DO NOT EDIT: Autogenerated by Makefile\n" > version.go
36+
@printf "package main\n" >> version.go
37+
@printf "const Version = \"$(VERSION)\"\n" >> version.go
3838

3939
rice-box.go: $(GOBIN)/rice editor/pull_release
4040
$(GOBIN)/rice embed-go

0 commit comments

Comments
 (0)