From 3583926c352a29365bf2cc78a546fdab9cbbf813 Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Wed, 6 Jun 2018 18:11:41 +0200 Subject: [PATCH] Check deadlines --- check_deadlines.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 check_deadlines.sh diff --git a/check_deadlines.sh b/check_deadlines.sh new file mode 100755 index 0000000..eb26aff --- /dev/null +++ b/check_deadlines.sh @@ -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