mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-17 02:31:28 -07:00
Ensure installation ignores temp path (#2892)
This commit is contained in:
parent
6e8faff624
commit
c58a8ab739
@ -104,6 +104,10 @@ namespace Bloxstrap
|
|||||||
if (InstallLocation.StartsWith("\\\\"))
|
if (InstallLocation.StartsWith("\\\\"))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (InstallLocation.StartsWith(Path.GetTempPath(), StringComparison.InvariantCultureIgnoreCase)
|
||||||
|
|| InstallLocation.Contains("\\Temp\\", StringComparison.InvariantCultureIgnoreCase))
|
||||||
|
return false;
|
||||||
|
|
||||||
// prevent from installing to a onedrive folder
|
// prevent from installing to a onedrive folder
|
||||||
if (InstallLocation.Contains("OneDrive", StringComparison.InvariantCultureIgnoreCase))
|
if (InstallLocation.Contains("OneDrive", StringComparison.InvariantCultureIgnoreCase))
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user