-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving Splatter.PSSVG.ps1 into /Build (re #12)
- Loading branch information
James Brundage
committed
May 9, 2023
1 parent
f3a2ee2
commit 6e5e545
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#requires -Module PSSVG | ||
|
||
Push-Location ($PSScriptRoot | Split-Path) | ||
|
||
$psChevron = | ||
svg.symbol -Id psChevron -Content @( | ||
|
@@ -12,7 +14,7 @@ $psChevron = | |
) -join ' ') | ||
) -ViewBox 100, 100 -PreserveAspectRatio $false | ||
|
||
$assetsPath = Join-Path $PSScriptRoot Assets | ||
$assetsPath = Join-Path $pwd Assets | ||
|
||
if (-not (Test-Path $assetsPath)) { | ||
$null = New-item -ItemType Directory -Path $assetsPath | ||
|
@@ -59,3 +61,4 @@ svg -ViewBox 1920, 1080 @( | |
) -FontSize 80em -FontWeight 500 | ||
) -OutputPath (Join-Path $assetsPath '[email protected]') | ||
|
||
Pop-Location |