ext-uv/validate-package.sh

13 lines
234 B
Bash
Raw Permalink Normal View History

2023-06-17 16:11:59 +02:00
#!/bin/bash
VALIDATE_OUTPUT=`pear package-validate`
echo "VALIDATE_OUTPUT is $VALIDATE_OUTPUT"
if [[ "$VALIDATE_OUTPUT" == *"Error"* ]]; then
echo "Package appears to contain an error"
exit 255
fi
echo "Package appears valid"