Merge branch 'pr/fix-offline' into 'master'

Justfile: fix offline detection

See merge request steveeJ/infra!22
This commit is contained in:
steveej 2019-10-30 20:29:55 +00:00
commit 23a043f33f

View file

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