Skip to content

Commit

Permalink
update sdk script.
Browse files Browse the repository at this point in the history
  • Loading branch information
tingluohuang-test committed Oct 10, 2018
1 parent b57f3a8 commit 8c0163e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Misc/dotnet-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,8 @@ if ($isAssetInstalled) {
New-Item -ItemType Directory -Force -Path $InstallRoot | Out-Null

$installDrive = $((Get-Item $InstallRoot).PSDrive.Name);
$free = Get-CimInstance -Class win32_logicaldisk | where Deviceid -eq "${installDrive}:"
if ($free.Freespace / 1MB -le 100 ) {
$diskInfo = Get-PSDrive -Name $installDrive
if ($diskInfo.Free / 1MB -le 100) {
Say "There is not enough disk space on drive ${installDrive}:"
exit 0
}
Expand Down

0 comments on commit 8c0163e

Please sign in to comment.