#!/bin/sh
# Fake tailscale CLI: logs each call, then fails after 5 s like a CLI that cannot reach its daemon socket.
echo "$(date +%s.%N) $*" >> "${FAKE_TAILSCALE_LOG:-/dev/null}"
sleep 5
echo "failed to connect to local tailscaled; it doesn't appear to be running (sudo systemctl start tailscaled ?)" >&2
echo "dial unix /var/run/tailscale/tailscaled.sock: connect: no such file or directory" >&2
exit 1
