Justfile: fix offline detection
This commit is contained in:
parent
f186f5d008
commit
8b8d429430
1 changed files with 1 additions and 1 deletions
2
Justfile
2
Justfile
|
@ -25,7 +25,7 @@ _device recipe dir +moreargs="":
|
||||||
_render_templates:
|
_render_templates:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ex
|
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...
|
echo No route to WAN. Skipping template rendering...
|
||||||
else
|
else
|
||||||
source $(just -v _get_nix_path {{invocation_directory()}}/nix/variables/versions.nix)
|
source $(just -v _get_nix_path {{invocation_directory()}}/nix/variables/versions.nix)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue