Check deadlines
This commit is contained in:
parent
cb4e98ac04
commit
3583926c35
1 changed files with 14 additions and 0 deletions
14
check_deadlines.sh
Executable file
14
check_deadlines.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue