Skip to content

Commit

Permalink
Reimplemented switches, switched PS engine back to Windows PowerShell
Browse files Browse the repository at this point in the history
  • Loading branch information
DailenG committed Jul 9, 2024
1 parent 4c53bbd commit 7332b3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Get-FreeSpace.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Parameters
param (
[string]$ForceClean,
[string]$NoDisplay
[switch]$Force,
[switch]$NoDisplay
)


Expand Down Expand Up @@ -128,9 +128,9 @@ $pathSizes | Format-Table -AutoSize
Write-Host "Total size capable of being freed: $totalHumanReadableSize"

# User selection via Out-GridView or prompt in terminal
if ($ForceClean -ne "True")
if (-Not($Force))
{
if ($NoDisplay -eq "True")
if ($NoDisplay)
{
$response = Read-Host "Do you want to remove the contents of all these locations? (Y/N)"
if ($response -ne "Y")
Expand Down
Binary file modified get-freespace.ps1.psbuild
Binary file not shown.

0 comments on commit 7332b3b

Please sign in to comment.