forked from pool/obs-service-source_validator
33 lines
461 B
Plaintext
33 lines
461 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
# Verify local source via osc-source_validator
|
||
|
|
||
|
|
||
|
while test $# -gt 0; do
|
||
|
case $1 in
|
||
|
*-outdir)
|
||
|
# just dummy ...
|
||
|
MYOUTDIR="$2"
|
||
|
shift
|
||
|
;;
|
||
|
*)
|
||
|
echo Unknown parameter $1.
|
||
|
echo 'Usage: this service is not excepting parameters'
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|
||
|
shift
|
||
|
done
|
||
|
|
||
|
FILE="${PATH##*/}"
|
||
|
|
||
|
RETURN=0
|
||
|
for i in /usr/lib/osc/source_validators/*; do
|
||
|
if [ -f "$i" ]; then
|
||
|
"$i" || RETURN=1
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
exit $RETURN
|
||
|
|