fmt
This commit is contained in:
parent
33642935ed
commit
f42b7758c1
@ -1,14 +1,13 @@
|
|||||||
#!@shell@ -e
|
#!@shell@ -e
|
||||||
|
|
||||||
BOLD=$(tput bold)
|
BOLD=$(tput bold)
|
||||||
NORMAL=$(tput sgr0)
|
NORMAL=$(tput sgr0)
|
||||||
|
|
||||||
FLAKE_EPOCH=$(@nix@/bin/nix flake metadata --json | @jq@/bin/jq .lastModified)
|
FLAKE_EPOCH=$(@nix@/bin/nix flake metadata --json | @jq@/bin/jq .lastModified)
|
||||||
NOW_EPOCH=$(@coreutils@/bin/date +"%s")
|
NOW_EPOCH=$(@coreutils@/bin/date +"%s")
|
||||||
|
|
||||||
EPOCH_DIFF=$(($NOW_EPOCH - $FLAKE_EPOCH))
|
EPOCH_DIFF=$(($NOW_EPOCH - $FLAKE_EPOCH))
|
||||||
|
|
||||||
if [ $EPOCH_DIFF -gt 60480 ]; then
|
|
||||||
echo "${BOLD}WARNING: inputs haven't been updated in $(($EPOCH_DIFF / 86400)) days!${NORMAL}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
if [ $EPOCH_DIFF -gt 60480 ]; then
|
||||||
|
echo "${BOLD}WARNING: inputs haven't been updated in $(($EPOCH_DIFF / 86400)) days!${NORMAL}"
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user