INNER CODE UNIT · TeX
warnings
zcash/zips · update_check.sh:75
warnings=$(<temp/.warnings.txt)
rm -f temp/.warnings.txt
# Exit with 1 if only warnings, 2 if there are any problems.
exitcode=0
if [ -n "$problems" ]; then
echo "Problems found:"
echo "$problems"
echo ""
fi
if [ -n "$warnings" ]; then
echo "Warnings found:"
echo "$warnings"
echo ""
exitcode=1
fi
if [ -n "$problems" ]; then exitcode=2; fi
if [ "$exitcode" -gt 0 ]; then