Fix: Installer - Powershell syntax #135

This commit is contained in:
BlaCk_Void 2021-08-05 22:35:39 +09:00
parent a0587e045b
commit 5ba68d82e3

View file

@ -437,7 +437,7 @@ function Select-Profile() {
if ( "${profileName}" -ne "" ) { if ( "${profileName}" -ne "" ) {
$local:targetPath = "" $local:targetPath = ""
foreach ( $global:profilePath in $firefoxProfilePaths ) { foreach ( $profilePath in $global:firefoxProfilePaths ) {
if ( "${profilePath}" -like "*${profileName}" ) { if ( "${profilePath}" -like "*${profileName}" ) {
$targetPath = "${profilePath}" $targetPath = "${profilePath}"
break break
@ -451,7 +451,8 @@ function Select-Profile() {
else { else {
Lepton-ErrorMessage "Unable to find ${profileName}" Lepton-ErrorMessage "Unable to find ${profileName}"
} }
else }
else {
if ( $firefoxProfilePaths.Length -eq 1 ) { if ( $firefoxProfilePaths.Length -eq 1 ) {
Lepton-OkMessage "Auto detected profile" Lepton-OkMessage "Auto detected profile"
} }