print sorted list of $IncludedPaths
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user