Files
imagick/validate_package.sh
Danack e2e4e01a50 # pear package-validate
Error: tag <file> in context "<dir name="tests">" has no attribute "role"
Validation: 1 error(s), 0 warning(s)

# echo  $?
0
2022-02-13 09:14:20 +00:00

12 lines
233 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"