Skip to content

Commit

Permalink
fix: remove -f predicate from find command inside script
Browse files Browse the repository at this point in the history
  • Loading branch information
antoooks committed Jan 14, 2024
1 parent ed27f32 commit 762144f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/unwanted-dependencies-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pull_unwanted_dependencies_json() {

check_unwanted_dependencies(){
for dep in $(jq -r '.spec.unwantedModules | keys[]' "${READ_PATH}"); do
for file in $(find -f ./* | fgrep go.sum); do
for file in $(find ./* | fgrep go.sum); do
if [[ -z $(cat $file | fgrep $dep) ]]; then
rc=1
echo "Error: unwanted dependencies found. ($dep at $(realpath $file))"
Expand Down

0 comments on commit 762144f

Please sign in to comment.