Skip to content

Commit

Permalink
Mention dependencies, expect license-detector in $PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
rockdaboot authored May 31, 2024
1 parent 27a9fca commit 41546aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions LICENSES/fetch-licenses.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash -u
#
# Requires license-detector from https://github.com/go-enry/go-license-detector/releases/tag/v4.3.0
# to be installed in the current directory.
# to be installed in the the PATH.
#
# The script also requires bash, xml2, jq, git, curl, awk, grep to be installed.

function cleanup {
rm -rf tmp
Expand Down Expand Up @@ -55,7 +57,7 @@ for dir_versioned in $dirs; do
continue
fi

json=$(./license-detector $repo -f json)
json=$(license-detector $repo -f json)
read -r license file < \
<(jq -r '"\(.[0].matches[0].license) \(.[0].matches[0].file)"' <<< "$json")

Expand Down

0 comments on commit 41546aa

Please sign in to comment.