Ensure there's a trailing path separator on upgrade command path

This commit is contained in:
baldurk
2018-03-06 11:06:46 +00:00
parent 0b3026346f
commit 14d9ec461b
+3
View File
@@ -241,6 +241,9 @@ struct UpgradeCommand : public Command
{
wstring wide_path = conv(parser.get<string>("path"));
if(wide_path.back() != '\\' && wide_path.back() != '/')
wide_path += L'\\';
// Wait for UI to exit
Sleep(3000);