Skip to content

Commit 49c73e6

Browse files
committed
Fix non ASCII dash
1 parent 9d59275 commit 49c73e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backup_github_repositories.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ $requestHeaders = @{
134134
}
135135

136136
# Request the GitHub API to get all repositories of a user or an organisation.
137-
Write-Host "Requesting '${gitHubRepositoriesUrl}'..." foregroundcolor Yellow
137+
Write-Host "Requesting '${gitHubRepositoriesUrl}'..." -foregroundcolor Yellow
138138
$repositories = Invoke-WebRequest -Uri $gitHubRepositoriesUrl -Headers $requestHeaders | Select-Object -ExpandProperty Content | ConvertFrom-Json
139139

140140
# Print a userfriendly message what will happen next.
141141
$totalSizeInMegabytes = Get-TotalRepositoriesSizeInMegabytes -repositories $repositories
142-
Write-Host "Cloning $($repositories.Count) repositories (~${totalSizeInMegabytes} MB) into '${backupDirectory}'..." foregroundcolor Yellow
142+
Write-Host "Cloning $($repositories.Count) repositories (~${totalSizeInMegabytes} MB) into '${backupDirectory}'..." -foregroundcolor Yellow
143143

144144
# Clone each repository into the backup directory.
145145
ForEach ($repository in $repositories) {
@@ -150,4 +150,4 @@ ForEach ($repository in $repositories) {
150150

151151
$stopwatch.Stop()
152152
$durationInSeconds = $stopwatch.Elapsed.Seconds
153-
Write-Host "Successfully finished the backup in ${durationInSeconds} seconds..." foregroundcolor Yellow
153+
Write-Host "Successfully finished the backup in ${durationInSeconds} seconds..." -foregroundcolor Yellow

0 commit comments

Comments
 (0)