From 47e21969e0ca213d9906921e5be4d0e6bd61e196 Mon Sep 17 00:00:00 2001 From: Matthew Goff Date: Thu, 25 Apr 2024 13:37:37 -0500 Subject: [PATCH] Create hc.sh --- hc.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 hc.sh diff --git a/hc.sh b/hc.sh new file mode 100644 index 0000000..86b69b0 --- /dev/null +++ b/hc.sh @@ -0,0 +1,8 @@ +#!/bin/sh +DELTA=600 +SFILE=/tmp/hc.timestamp +if [ -f $SFILE ] && [ $(expr $(date +%s) - $(stat -c %Y $SFILE)) -lt $DELTA ]; then + exit 0 +else + exit 1 +fi