mirror of
https://github.com/black7375/Firefox-UI-Fix.git
synced 2025-12-06 02:30:54 -08:00
Fix: Install - Spacing at path
This commit is contained in:
parent
8ab9ffff69
commit
b37e8e3446
2 changed files with 3 additions and 3 deletions
|
|
@ -691,9 +691,9 @@ function Apply-CustomFile() {
|
||||||
|
|
||||||
if ( Test-Path -Path "${customFile}" -PathType leaf ) {
|
if ( Test-Path -Path "${customFile}" -PathType leaf ) {
|
||||||
$global:customFileApplied = $true
|
$global:customFileApplied = $true
|
||||||
|
|
||||||
# Apply without duplication
|
# 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
|
Get-Content -Path "${customFile}" | Out-File -FilePath "${targetFile}" -Append
|
||||||
}
|
}
|
||||||
elseif ( Test-Path -Path "${profilePath}\chrome\${customFile}" -PathType leaf ) {
|
elseif ( Test-Path -Path "${profilePath}\chrome\${customFile}" -PathType leaf ) {
|
||||||
|
|
|
||||||
|
|
@ -667,7 +667,7 @@ apply_custom_file() {
|
||||||
customFileApplied="true"
|
customFileApplied="true"
|
||||||
|
|
||||||
# Apply without duplication
|
# 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}"
|
cat "${customFile}" >> "${targetFile}"
|
||||||
fi
|
fi
|
||||||
elif [ -n "${otherCustom}" ]; then
|
elif [ -n "${otherCustom}" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue