mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 08:08:53 -05:00
24 lines
340 B
Bash
24 lines
340 B
Bash
|
#!/bin/sh -e
|
||
|
signoff() {
|
||
|
if ! git log --format='%b' HEAD^.. | grep 'Signed-off-by' >/dev/null
|
||
|
then
|
||
|
echo "Missing sign-off" >&2
|
||
|
return 1
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
exitcode=0
|
||
|
for step in signoff
|
||
|
do
|
||
|
if ! $step
|
||
|
then
|
||
|
exitcode=1
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
if [ $exitcode -eq 0 ]
|
||
|
then
|
||
|
echo "Everything looks good!"
|
||
|
fi
|
||
|
exit $exitcode
|