Modified powershell deploy script to properly sanititze output
This commit is contained in:
parent
0369a450fe
commit
64a36b38ce
15
.ci-dev.ps1
15
.ci-dev.ps1
@ -12,9 +12,9 @@ if (Test-Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev\.git") {
|
||||
if (Test-Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev\.gitlab-ci.yml") {
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev\.gitlab-ci.yml" -Force
|
||||
}
|
||||
if (Test-Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev\deploy.ps1") {
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev\deploy.ps1" -Force
|
||||
}
|
||||
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev\*.ps1" -Force
|
||||
|
||||
if (Test-Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev\.gitignore") {
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev\.gitignore" -Force
|
||||
}
|
||||
@ -22,8 +22,13 @@ if (Test-Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev\.htaccess") {
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev\.htaccess" -Force
|
||||
}
|
||||
|
||||
Rename-Item -Path "C:\inetpub\wwwroot\enpaul-dev" -NewName "enpaul-dev.old" -Force
|
||||
if (Test-Path "C:\inetpub\wwwroot\enpaul-dev") {
|
||||
Rename-Item -Path "C:\inetpub\wwwroot\enpaul-dev" -NewName "enpaul-dev.old" -Force
|
||||
}
|
||||
|
||||
Rename-Item -Path "C:\inetpub\wwwroot\build-tmp.enpaul-dev" -NewName "enpaul-dev" -Force
|
||||
|
||||
Remove-Item -path "C:\inetpub\wwwroot\enpaul-dev.old" -Recurse -Force
|
||||
if (Test-Path "C:\inetpub\wwwroot\enpaul-dev.old") {
|
||||
Remove-Item -path "C:\inetpub\wwwroot\enpaul-dev.old" -Recurse -Force
|
||||
}
|
||||
exit
|
||||
|
@ -12,9 +12,9 @@ if (Test-Path "C:\inetpub\wwwroot\tmp-build.enpaul\.git") {
|
||||
if (Test-Path "C:\inetpub\wwwroot\tmp-build.enpaul\.gitlab-ci.yml") {
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\tmp-build.enpaul\.gitlab-ci.yml" -Force
|
||||
}
|
||||
if (Test-Path "C:\inetpub\wwwroot\tmp-build.enpaul\deploy.ps1") {
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\tmp-build.enpaul\deploy.ps1" -Force
|
||||
}
|
||||
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\tmp-build.enpaul\*.ps1" -Force
|
||||
|
||||
if (Test-Path "C:\inetpub\wwwroot\tmp-build.enpaul\.gitignore") {
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\tmp-build.enpaul\.gitignore" -Force
|
||||
}
|
||||
@ -22,8 +22,14 @@ if (Test-Path "C:\inetpub\wwwroot\tmp-build.enpaul\.htaccess") {
|
||||
Remove-Item -Path "C:\inetpub\wwwroot\tmp-build.enpaul\.htaccess" -Force
|
||||
}
|
||||
|
||||
Rename-Item -Path "C:\inetpub\wwwroot\enpaul" -NewName "enpaul.old" -Force
|
||||
if (Test-Path "C:\inetpub\wwwroot\enpaul")
|
||||
Rename-Item -Path "C:\inetpub\wwwroot\enpaul" -NewName "enpaul.old" -Force
|
||||
}
|
||||
|
||||
Rename-Item -Path "C:\inetpub\wwwroot\tmp-build.enpaul" -NewName "enpaul" -Force
|
||||
|
||||
Remove-Item -path "C:\inetpub\wwwroot\enpaul.old" -Recurse -Force
|
||||
if (Test-Path "C:\inetpub\wwwroot\enpaul.old") {
|
||||
Remove-Item -path "C:\inetpub\wwwroot\enpaul.old" -Recurse -Force
|
||||
}
|
||||
|
||||
exit
|
||||
|
Loading…
Reference in New Issue
Block a user