From 0858a3d0e26b7ee690c132668f454f43cbfad85b Mon Sep 17 00:00:00 2001 From: Henry Morley Date: Sun, 25 Jan 2026 20:13:21 +0000 Subject: [PATCH] install.ps1: Force cast on lists Fixes script creating a folder called C in the current directory when only one firefoxProfileDirPaths exists --- install.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.ps1 b/install.ps1 index eb5ef71..0245482 100644 --- a/install.ps1 +++ b/install.ps1 @@ -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