Fix: Installer - Powershell syntex #135

This commit is contained in:
alstjr7375 2021-08-05 13:58:22 +09:00
parent 47c5cdddb7
commit 14252a34d1

View file

@ -631,7 +631,7 @@ function Check-InstallTypes() {
#== Install Helpers ============================================================
$chromeDuplicate = $false
function Check-ChromeExist() {
if ( Test-Path -Path "chrome" -and -Not (Test-Path -Path "chrome\${LEPTONINFOFILE}") ) {
if ( (Test-Path -Path "chrome") -and (-Not (Test-Path -Path "chrome\${LEPTONINFOFILE}")) ) {
$global:chromeDuplicate = $true
Move-Auto "chrome" "chrome.bak"
Lepton-OkMessage "Backup files"
@ -656,7 +656,6 @@ function Clone-Lepton() {
[Parameter(Position=0)]
[string] $branch = ""
)
local branch="$1"
if ( "${branch}" -eq "" ) {
$branch = "${leptonBranch}"