RunUAT.sh BuildPlugin issue

Trying to get a plugin compiled on linux by using the BuildPlugin command, but it gives this error:

/UnrealEngine/BuiltPlugins /HostProject/Intermediate/Build/Linux/x64/UnrealEditor/Development/UnrealEd/SharedPCH.UnrealEd.Cpp20.h:2:10: error: missing terminating ‘"’ character [-Werror,-Winvalid-pp-token]

When I look at that file (pictured below) can see it has an errant character in it, but where that is coming from and why is the problem to be solved (I already double checked the bash file to make sure it wasn’t introducing the problem, so could use a hint on where it might be coming from).

[Image Removed]

I will note that the using the BuildPlugin command in windows to build the plugin works without issue. But we would like to be able to build the linux bins for it as well.

Steps to Reproduce
Engine/Build/BatchFiles/RunUAT.sh BuildPlugin -plugin=Engine/Plugins/Marketplace/MyPlugin/MyPlugin.uplugin -package=BuiltPlugins

Hey there,

This is certainly odd - I wonder if the carriage return is being passed in somehow from the command line. Can you try this minor modification to BuildPluginCommand.Automation.cs:Line-58:

`// Get the output directory
string PackageParam = ParseParamValue(“Package”);
if (PackageParam == null)
{
throw new AutomationException(“Missing -Package=… argument”);
}

// JULIAN_DIVERGENCE_START
PackageParam = PackageParam.Trim();
// JULIAN_DIVERGENCE_END`Julian