Fix: Install - Spacing at path

This commit is contained in:
alstjr7375 2022-04-21 15:59:27 +09:00
parent 8ab9ffff69
commit b37e8e3446
2 changed files with 3 additions and 3 deletions

View file

@ -693,7 +693,7 @@ function Apply-CustomFile() {
$global:customFileApplied = $true
# Apply without duplication
if ( -not (Write-Output "$(Write-Output $(Get-Content -Path ${targetFile}))" | Select-String -Pattern "$(Write-Output $(Get-Content -Path ${customFile}))" -SimpleMatch -Quiet) ) {
if ( -not (Write-Output "$(Write-Output $(Get-Content -Path "${targetFile}"))" | Select-String -Pattern "$(Write-Output $(Get-Content -Path "${customFile}"))" -SimpleMatch -Quiet) ) {
Get-Content -Path "${customFile}" | Out-File -FilePath "${targetFile}" -Append
}
elseif ( Test-Path -Path "${profilePath}\chrome\${customFile}" -PathType leaf ) {

View file

@ -667,7 +667,7 @@ apply_custom_file() {
customFileApplied="true"
# Apply without duplication
if ! grep -Fq "$(echo $(cat ${customFile}))" <(echo "$(echo $(cat ${targetFile}))"); then
if ! grep -Fq "$(echo $(cat "${customFile}"))" <(echo "$(echo $(cat "${targetFile}"))"); then
cat "${customFile}" >> "${targetFile}"
fi
elif [ -n "${otherCustom}" ]; then