print sorted list of $IncludedPaths

This commit is contained in:
2024-02-23 00:44:02 -05:00
parent 038b8f2685
commit 3ff21ab8f0
+1 -1
View File
@@ -108,7 +108,7 @@ ForEach ( $plan in $BackupPlans ) {
# 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