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