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