keycloak-scim/distribution/licenses-common/check-licenses.sh
Dimitri Papadopoulos Orfanos 7c77bb732f
Fix typo found by codespell in shell scripts (#28957)
Signed-off-by: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>
2024-04-22 08:06:24 -03:00

24 lines
544 B
Bash
Executable file

#!/bin/bash
MODULES=`readlink -f $1`
LICENSES=`readlink -f $2`
for i in `find $MODULES -name '*.jar'`; do
if ( unzip -l $i | grep pom.properties &>/dev/null ); then
unzip -p $i '*/pom.properties' > /tmp/pom.properties
source /tmp/pom.properties &>/dev/null
if [ ! -f $LICENSES/$groupId\,$artifactId\,$version,* ]; then
echo "Missing: "
echo "group: $groupId"
echo "artifact: $artifactId"
echo "version: $version"
echo "---------------------"
fi
else
echo "Not Maven: $i"
echo "---------------------"
fi
done