Skip to content

Commit

Permalink
Fix echo ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Jan 8, 2024
1 parent d0f8659 commit f9d79a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ check-license-headers: FORCE prepare-addlicense
@bash -c 'shopt -s globstar; addlicense --check -ignore "vendor/**" -- **/*.go'

check-dependency-licenses: FORCE
@printf "\e[1;36m>> go-licence-detector\e[0m\n"
@if ! hash go-licence-detector 2>/dev/null; then printf "\e[1;36m>> Installing go-licence-detector...\e[0m\n"; go install go.elastic.co/go-licence-detector@latest; fi
@printf "\e[1;36m>> go-licence-detector\e[0m\n"
@go list -m -mod=readonly -json all | go-licence-detector -includeIndirect -rules .license-scan-rules.json -overrides .license-scan-overrides.jsonl

clean: FORCE
Expand Down
2 changes: 1 addition & 1 deletion internal/makefile/makefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ endif
target: "check-dependency-licenses",
phony: true,
recipe: []string{
`@printf "\e[1;36m>> go-licence-detector\e[0m\n"`,
`@if ! hash go-licence-detector 2>/dev/null; then printf "\e[1;36m>> Installing go-licence-detector...\e[0m\n"; go install go.elastic.co/go-licence-detector@latest; fi`,
`@printf "\e[1;36m>> go-licence-detector\e[0m\n"`,
fmt.Sprintf(`@go list -m -mod=readonly -json all | go-licence-detector -includeIndirect -rules %s -overrides %s`,
licenseRulesFile, scanOverridesFile),
},
Expand Down

0 comments on commit f9d79a0

Please sign in to comment.