mirror of
https://github.com/black7375/Firefox-UI-Fix.git
synced 2025-12-06 02:30:54 -08:00
Fix: Installer - Powershell file functions #135
This commit is contained in:
parent
75709e2543
commit
f16c8cc65b
1 changed files with 5 additions and 5 deletions
10
install.ps1
10
install.ps1
|
|
@ -142,7 +142,7 @@ function Copy-Auto() {
|
|||
Write-Host ""
|
||||
}
|
||||
|
||||
Copy-Item -Path "${file}" -Destination "${target}" -Force
|
||||
Copy-Item -Path "${file}" -Destination "${target}" -Force -Recurse
|
||||
}
|
||||
|
||||
function Move-Auto() {
|
||||
|
|
@ -165,10 +165,10 @@ function Move-Auto() {
|
|||
Write-Host ""
|
||||
}
|
||||
|
||||
Move-Item -Path "${file}" -Destination "${target}" -Force
|
||||
Get-ChildItem -Path "${target}" -Recurse | Move-Item -Path "${file}" -Destination "${target}" -Force
|
||||
}
|
||||
|
||||
function Restore-Auto() {
|
||||
function Restore-Auto() {
|
||||
Param (
|
||||
[Parameter(Mandatory=$true, Position=0)]
|
||||
[string] $file
|
||||
|
|
@ -178,9 +178,9 @@ function Restore-Auto() {
|
|||
if ( Test-Path -Path "${file}" ) {
|
||||
Remove-Item "${file}" -Recurse -Force
|
||||
}
|
||||
Move-Item -Path "${target}" -Destination "${file}" -Force
|
||||
Get-ChildItem -Path "${target}" -Recurse | Move-Item -Destination "${file}" -Force
|
||||
|
||||
$local:loopupTarget = "${target}.bak"
|
||||
$local:lookupTarget = "${target}.bak"
|
||||
if ( Test-Path -Path "${lookupTarget}" ) {
|
||||
Restore-Auto "${target}"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue