mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-13 16:51:29 -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("\\\\"))
|
||||
return false;
|
||||
|
||||
if (InstallLocation.StartsWith(Path.GetTempPath(), StringComparison.InvariantCultureIgnoreCase)
|
||||
|| InstallLocation.Contains("\\Temp\\", StringComparison.InvariantCultureIgnoreCase))
|
||||
return false;
|
||||
|
||||
// prevent from installing to a onedrive folder
|
||||
if (InstallLocation.Contains("OneDrive", StringComparison.InvariantCultureIgnoreCase))
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user