print sorted list of $IncludedPaths

This commit is contained in:
2024-02-23 00:44:02 -05:00
parent 038b8f2685
commit 3ff21ab8f0
+2 -2
View File
@@ -104,11 +104,11 @@ ForEach ( $plan in $BackupPlans ) {
Use-Path -List $ExcludedPaths -Path $path
}
}
# Print all paths in $IncludedPaths
If ( $IncludedPaths.Length -gt 0 ) {
Write-Output "Paths to backup:"
ForEach ( $path in $IncludedPaths ) { Write-Output $path }
ForEach ( $path in ($IncludedPaths | Sort-Object) ) { Write-Output $path }
}
# Define $MaxFileSize if it exists, or set it to the max value of a long to bypass it