ext-uv/validate-package.sh
2023-06-17 09:40:34 -05:00

13 lines
234 B
Bash

#!/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"