Skip to content

Commit

Permalink
nixos/services.factorio: fix escapeShellArg
Browse files Browse the repository at this point in the history
  • Loading branch information
Stunkymonkey committed Sep 2, 2024
1 parent 1f34eeb commit e1281c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/games/factorio.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"));

Expand Down

0 comments on commit e1281c7

Please sign in to comment.