ServerManagers/src/ServerManager.Updater/Utils/ScriptUtils.cs
2021-01-07 16:23:23 +10:00

15 lines
413 B
C#

namespace ServerManagerTool.Updater
{
public static class ScriptUtils
{
public static string AsQuoted(this string parameter)
{
var newValue = parameter;
if (!newValue.StartsWith("\""))
newValue = "\"" + newValue;
if (!newValue.EndsWith("\""))
newValue = newValue + "\"";
return newValue;
}
}
}