Skip to content

Commit

Permalink
Create hc.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Kline- authored Apr 25, 2024
1 parent 61690df commit 47e2196
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hc.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 47e2196

Please sign in to comment.