Fix malformed output

This commit is contained in:
Manuel Thalmann 2024-12-08 03:07:54 +01:00
parent 9007570d94
commit 37f3b3980b

View file

@ -8,7 +8,7 @@ begin
set config (getProgramConfig $argv --json)
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