Fix malformed output

This commit is contained in:
Manuel Thalmann 2024-12-08 03:07:54 +01:00
parent 8f26799cbd
commit b3f9e2dd23

View file

@ -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