Compare commits

..

No commits in common. "07b9a922ba719488bf355f504b8d937520705fcd" and "734ad8d6306be32973d4b76f24ff9d7c6d746678" have entirely different histories.

1 changed files with 5 additions and 2 deletions

View File

@ -13,11 +13,14 @@ dir="$(pwd | sed 's/\//\n/g' | tail -n 1)"
for toml in $(find "$PWD" -name "Cargo.toml"); do
printf "Project: %s\n" "$(tomcat package.name "$toml")"
if ! [ "$(toml_lic="$(tomcat package.license "$toml" && printf "%s\n" "$?")")" = "0" ]; then
set +e # disable error propogation to catch tomcat exit code
toml_lic="$(tomcat package.license "$toml")"
if ! [ "$?" = "0" ]; then
printf "%s: Missing license information\n" "$(printf "%s\n" "$toml" |\
sed "s/^.\+$dir\///g")"
continue
continue
fi
set -e # re-enable error propogation for the rest of the script
for file in $(find "$(printf "%s\n" "$toml" |\
sed 's/Cargo\.toml/src/g')" -name "*.rs")