abgabesystem/check_deadlines.sh
2018-06-06 18:11:41 +02:00

14 lines
235 B
Bash
Executable file

#!/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