File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,8 @@ function Start-Htmx {
353
353
# If we are on unix, and a port has not been set,
354
354
# and an environment variable indicates we are in a container, we will use port 80.
355
355
if ($PSVersionTable.Platform -eq ' Unix' -and (
356
- Get-ChildItem env: | Where-Object Name -Match InContainer
356
+ Get-ChildItem env: |
357
+ Where-Object Name -Match ' In\P{p}{0,}Container'
357
358
)) {
358
359
if (-not $port ) { $port = 80 }
359
360
" http://*:$port /"
@@ -428,7 +429,12 @@ function Start-Htmx {
428
429
429
430
# If a palette name was provided, we will include the 4bitcss stylesheet.
430
431
if ($PaletteName ) {
431
- ' <link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/gh/2bitdesigns/4bitcss@latest/css/.css" id="4bitcss" />' -replace ' \.css' , " $PaletteName .css"
432
+ if ($PaletteName -match ' /.+?\.css$' ) {
433
+ " <link type='text/css' rel='stylesheet' href='$PaletteName ' id='4bitcss' />"
434
+
435
+ } else {
436
+ ' <link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/gh/2bitdesigns/4bitcss@latest/css/.css" id="4bitcss" />' -replace ' \.css' , " $PaletteName .css"
437
+ }
432
438
}
433
439
# If a code font was provided, we will include the code font stylesheet.
434
440
if ($CodeFont ) {
You can’t perform that action at this time.
0 commit comments