Skip to content

Commit b7cf216

Browse files
committed
Merge pull request #116 from wking/echo-e
*: Remove 'echo -e ...' (use 'echo' and 'printf')
2 parents b72e75a + 1547f10 commit b7cf216

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.tool/check-license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -o pipefail
77
ret=0
88

99
for file in $(find . -type f -iname '*.go' ! -path './vendor/*'); do
10-
(head -n3 "${file}" | grep -Eq "(Copyright|generated|GENERATED)") || (echo -e "${file}:missing license header" && ret=1)
10+
(head -n3 "${file}" | grep -Eq "(Copyright|generated|GENERATED)") || (echo "${file}:missing license header" && ret=1)
1111
done
1212

1313
exit $ret

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ oci-image-tool:
6868

6969
schema-fs:
7070
@echo "generating schema fs"
71-
@cd schema && echo -e "$$(cat ../.header)\n\n$$(go generate)" > fs.go
71+
@cd schema && printf "%s\n\n%s\n" "$$(cat ../.header)" "$$(go generate)" > fs.go
7272

7373
check-license:
7474
@echo "checking license headers"

0 commit comments

Comments
 (0)