Justfile: fix online detection

This commit is contained in:
steveej 2020-09-14 19:41:00 +02:00
parent 45fb8f8397
commit ec3d385d96

View file

@ -26,7 +26,7 @@ _device recipe dir +moreargs="":
_render_templates:
#!/usr/bin/env bash
set -ex
if ! ip route get 0.0.0.0; then
if ! ip route get 1.1.1.1; then
echo No route to WAN. Skipping template rendering...
else
source $(just -v _get_nix_path {{invocation_directory()}}/nix/variables/versions.nix)