mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
nixos/services.factorio: fix escapeShellArg (#339115)
This commit is contained in:
commit
9e244d3d92
@ -275,7 +275,7 @@ in
|
||||
"--create=${mkSavePath cfg.saveName}"
|
||||
(lib.optionalString (cfg.mods != []) "--mod-directory=${modDir}")
|
||||
])
|
||||
+ (lib.optionalString (cfg.extraSettingsFile != null) ("\necho ${lib.strings.lib.escapeShellArg serverSettingsString}"
|
||||
+ (lib.optionalString (cfg.extraSettingsFile != null) ("\necho ${lib.strings.escapeShellArg serverSettingsString}"
|
||||
+ " \"$(cat ${cfg.extraSettingsFile})\" | ${lib.getExe pkgs.jq} -s add"
|
||||
+ " > ${stateDir}/server-settings.json"));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user