From 499bee6e82807ae650dd628b0dd83b9d3a95367b Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Wed, 14 Apr 2021 00:56:41 -0700 Subject: [PATCH] remove local cron_commits.sh in favor of nektro/bash-helpers --- cron_commits.sh | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100755 cron_commits.sh diff --git a/cron_commits.sh b/cron_commits.sh deleted file mode 100755 index c32b6b57a1facd3b2aecf1ba0037661e6470e844..0000000000000000000000000000000000000000 --- a/cron_commits.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bash - -set -e - -most_recent='' - -while true -do - commits=$(curl -s https://api.github.com/repos/$1/commits) - sha=$(echo "$commits" | jq -r '.[0].sha') - - if [ -z "$most_recent" ] - then - most_recent="$sha" - echo "first run of loop, commit is $sha" - continue - fi - - if [ "$most_recent" == "$sha" ] - then - echo "most recent commit is the same, sleeping" - # sec - min - hr - sleep $((1 * 60 * 60 * $2)) - continue - fi - - echo "found new commit $sha" - ./generate.sh -done -- 2.54.0