Skip to content

Commit

Permalink
Escape additional console arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
TGRCdev committed Apr 5, 2024
1 parent 2c83d83 commit ce829ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dedicated-server.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
} // defaultArgs;
consoleArgStr = with lib; strings.concatStringsSep " " (
attrsets.mapAttrsToList (
arg: val: "+${arg} ${builtins.toString val}"
arg: val: "+${arg} ${strings.escapeShellArg (toString val)}"
) args.consoleArgs
);
warnNoBwrap = val: (lib.warn "`useBubblewrap=false` is intended for testing and debug purposes only." val);
Expand Down

0 comments on commit ce829ac

Please sign in to comment.