Skip to content

Commit

Permalink
Chocolatey ignore file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
v-vreyya authored and v-vreyya committed Dec 3, 2024
1 parent f69d7e0 commit 8e3c54f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions publish-scripts/chocolatey/installps_template
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ $packageArgs = @{
Install-ChocolateyZipPackage @packageArgs

# only symlink for func.exe
$files = Get-ChildItem $toolsDir -include *.exe
$files = Get-ChildItem $toolsDir -filter *.exe -Recurse -File
foreach ($file in $files) {
if (!$file.Name.Equals("func.exe")) {
if (!$file.Name.Equals("func.exe") -or (!($file.DirectoryName -eq $toolsDir) -and $file.Name.Equals("func.exe"))) {
#generate an ignore file
New-Item "$file.ignore" -type file -force | Out-Null
$ignoreFilePath = Join-Path -Path $file.DirectoryName -ChildPath "$($file.Name).ignore"
New-Item -Path $ignoreFilePath -Type File -Force | Out-Null
}
}

Expand Down

0 comments on commit 8e3c54f

Please sign in to comment.