Welcome to mirror list, hosted at ThFree Co, Russian Federation.

update_color.ps1 « font-awesome « resources - github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b1fe755e0690ed9a802a516913e4d6d307f7e36f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<#
    .SYNOPSIS
      This script replaces the color in all svg files in this folder
#>
$COLOR=$Args[0]
Write-Host "Color:" $COLOR
if (-not $COLOR) {
    Write-Host "Please specify color"
    Write-Host "update_corlor.ps1 `"#B5B6BB`""
    exit(1)
}
Get-ChildItem "*.svg" | % {
    $tmp = Get-Content $_
    $tmp = $tmp -replace "fill=`"\S+`"", "fill=`"$COLOR`""
    Set-Content -Path $_ -Value $tmp

}