Skip to content

Commit 7544e97

Browse files
committed
Fixed install and uninstall Scripts +semver:minor
1 parent 7cb323c commit 7544e97

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

TfsWitMigrator.Console/Chocolatey/chocolateyInstall.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
try {
2-
$sysDrive = $env:SystemDrive
3-
$vstssyncmigrationpath =Join-Path -Path "\VSTSSyncMigration" -ChildPath Get-ToolsLocation
2+
Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force;
3+
$toolsLoc = Get-ToolsLocation
4+
$vstssyncmigrationpath =Join-Path -Path $toolsLoc -ChildPath "\VSTSSyncMigration"
45

56
if(test-path $vstssyncmigrationpath) {
67
write-host "Cleaning out the contents of $vstssyncmigrationpath"

TfsWitMigrator.Console/Chocolatey/chocolateyUninstall.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
try {
2-
$sysDrive = $env:SystemDrive
3-
$vstssyncmigrationpath =Join-Path -Path "\VSTSSyncMigration" -ChildPath Get-ToolsLocation
2+
Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force;
3+
$toolsLoc = Get-ToolsLocation
4+
$vstssyncmigrationpath =Join-Path -Path $toolsLoc -ChildPath "\VSTSSyncMigration"
45

56
Uninstall-ChocolateyZipPackage 'vstssyncmigration' 'vstsbulkeditor-#{GITVERSION.FULLSEMVER}#.zip'
67

0 commit comments

Comments
 (0)