Fix malformed output
This commit is contained in:
parent
8f26799cbd
commit
b3f9e2dd23
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ begin
|
||||||
set config (getProgramConfig $argv --json)
|
set config (getProgramConfig $argv --json)
|
||||||
|
|
||||||
for name in (echo "$config" | jq '.networkFiles | keys[]' --raw-output0 | string split0 || true)
|
for name in (echo "$config" | jq '.networkFiles | keys[]' --raw-output0 | string split0 || true)
|
||||||
echo "$config" | NAME=$name jq '.networkFiles[env.NAME]' | sudo tee "/etc/systemd/network/10-$name.network" >/dev/null
|
echo "$config" | NAME=$name jq '.networkFiles[env.NAME]' --raw-output | sudo tee "/etc/systemd/network/10-$name.network" >/dev/null
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue