Skip to content

Commit

Permalink
(GH-969) Generate ignore after $file location
Browse files Browse the repository at this point in the history
Generate the ignore after the file location has been determined.
  • Loading branch information
ferventcoder committed Sep 22, 2016
1 parent 56bf25c commit 15deb12
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,6 @@ param(
$fileType = 'exe'
}

$ignoreFile = $file + '.ignore'
try {
'' | out-file $ignoreFile
} catch {
Write-Warning "Unable to generate `'$ignoreFile`'"
}

$env:ChocolateyInstallerType = $fileType

$additionalInstallArgs = $env:chocolateyInstallArguments;
Expand Down Expand Up @@ -210,6 +203,13 @@ Pro / Business supports a single, ubiquitous install directory option.
$file = $updatedFilePath
}

$ignoreFile = $file + '.ignore'
try {
'' | out-file $ignoreFile
} catch {
Write-Warning "Unable to generate `'$ignoreFile`'"
}

$workingDirectory = Get-Location
try {
$workingDirectory = [System.IO.Path]::GetDirectoryName($file)
Expand Down

0 comments on commit 15deb12

Please sign in to comment.