Check deadlines

This commit is contained in:
Tim Schubert 2018-06-06 18:11:41 +02:00
parent cb4e98ac04
commit 3583926c35

14
check_deadlines.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
for d in $(cat abgaben.txt)
do
time=$(echo $d | cut -d',' -f1)
tag=$(echo $d | cut -d',' -f2)
now=$(date --iso-8601)
if [[ "$time" < "$now" ]] || [[ "$time" = "$now" ]]
then
git tag ${tag}
git push --tags
fi
done