just use open code directly isntead of useless pass through

This commit is contained in:
RingOfStorms (Joshua Bell) 2026-01-09 17:11:20 -06:00
parent 4f0eaddc05
commit cb139caee1
5 changed files with 49 additions and 127 deletions

View file

@ -323,6 +323,11 @@
#!/usr/bin/env bash
set -euo pipefail
if ! ${pkgs.iputils}/bin/ping -c1 -W2 1.1.1.1 &>/dev/null; then
echo "No network access, skipping atuin login"
exit 0
fi
secret="/run/secrets/atuin-key-josh"
if [ ! -s "$secret" ]; then
echo "Missing atuin secret at $secret" >&2