Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (31 sloc) 675 Bytes
#!/bin/bash
# Verify local sources as required by openSUSE:Factory project
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##*/}"
HELPERS_DIR=/usr/lib/obs/service/source_validators/helpers
$HELPERS_DIR/check_input_filename `pwd` || exit 1
RETURN=0
for i in /usr/lib/obs/service/source_validators/*; do
if [ -f "$i" ]; then
if [ -z "$PS1" ]; then
"$i" --batchmode || RETURN=1
else
"$i" || RETURN=1
fi
fi
done
exit $RETURN
Something went wrong with that request. Please try again.