all: fmt
This commit is contained in:
parent
cdef7656ff
commit
5e5129e511
1
bin/ci
1
bin/ci
@ -88,7 +88,6 @@ if [ "${1}" = "update" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
if ! git checkout main; then
|
||||
handle_co_fail
|
||||
exit 1
|
||||
|
@ -1,5 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while nix flake check --no-build |& grep "is not valid" >/tmp/invalid; do
|
||||
path=$(cat /tmp/invalid | awk -F\' '{print $2}')
|
||||
|
@ -20,7 +20,7 @@ CURRENT_COMMIT="$(echo $CURRENT | jq -r .rev)"
|
||||
if [ "${CURRENT_COMMIT}" != "${COMMIT}" ]; then
|
||||
nix-prefetch-github openssh openssh-portable \
|
||||
--rev "${COMMIT}" \
|
||||
--json | \
|
||||
--json |
|
||||
jq -r --arg v "${UPDATED}" \
|
||||
--arg c "${COMMENT}" \
|
||||
'. |= . + {"version": $v, "comment": $c}' \
|
||||
|
@ -56,7 +56,7 @@ resolveAlias() {
|
||||
agentHasKey() {
|
||||
checkKey="$(echo $1 | awk '{print $NF}')"
|
||||
for i in $AgentKeys; do
|
||||
if [[ "$i" == $checkKey ]]; then
|
||||
if [[ $i == $checkKey ]]; then
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
@ -9,10 +9,10 @@ NORMAL=$(tput sgr0)
|
||||
FLAKE_EPOCH=$(@nix@/bin/nix flake metadata --json | @jq@/bin/jq .lastModified)
|
||||
NOW_EPOCH=$(@coreutils@/bin/date +"%s")
|
||||
|
||||
EPOCH_DIFF=$(($NOW_EPOCH - $FLAKE_EPOCH))
|
||||
EPOCH_DIFF=$((NOW_EPOCH - FLAKE_EPOCH))
|
||||
|
||||
if [ $EPOCH_DIFF -gt $((60480 * 5)) ]; then
|
||||
echo
|
||||
echo "${BOLD}WARNING: inputs haven't been updated in $(($EPOCH_DIFF / 86400)) days!${NORMAL}"
|
||||
echo "${BOLD}WARNING: inputs haven't been updated in $((EPOCH_DIFF / 86400)) days!${NORMAL}"
|
||||
echo
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user