mirror of
https://github.com/black7375/Firefox-UI-Fix.git
synced 2026-03-11 17:30:44 -07:00
install.ps1: Force cast on lists
Fixes script creating a folder called C in the current directory when only one firefoxProfileDirPaths exists
This commit is contained in:
parent
1f30fe71dd
commit
0858a3d0e2
1 changed files with 3 additions and 3 deletions
|
|
@ -401,11 +401,11 @@ function Check-ProfileDir() {
|
|||
)
|
||||
|
||||
if ( "${profileDir}" -ne "" ) {
|
||||
$global:firefoxProfileDirPaths = @("${profileDir}")
|
||||
[System.Collections.Generic.List[string]]$global:firefoxProfileDirPaths = @("${profileDir}")
|
||||
}
|
||||
|
||||
|
||||
$global:firefoxProfileDirPaths = Filter-Path $global:firefoxProfileDirPaths "Container"
|
||||
[System.Collections.Generic.List[string]]$global:firefoxProfileDirPaths = Filter-Path $global:firefoxProfileDirPaths "Container"
|
||||
|
||||
if ( $firefoxProfileDirPaths.Length -eq 0 ) {
|
||||
Lepton-ErrorMessage "Unable to find firefox profile dir."
|
||||
|
|
@ -653,7 +653,7 @@ $localCustomFiles = $customFiles.Clone()
|
|||
|
||||
$customFileExist = $false
|
||||
function Check-CustomFiles() {
|
||||
$global:localCustomFiles = Filter-Path $localCustomFiles
|
||||
[System.Collections.Generic.List[string]]$global:localCustomFiles = Filter-Path $localCustomFiles
|
||||
|
||||
if ( $global:localCustomFiles.Length -gt 0 ) {
|
||||
$global:customFileExist = $true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue