Commit 2619642 1 parent c09a203 commit 2619642 Copy full SHA for 2619642
File tree 1 file changed +5
-2
lines changed
publish-scripts/chocolatey
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,14 @@ $packageArgs = @{
40
40
Install-ChocolateyZipPackage @packageArgs
41
41
42
42
# only symlink for func.exe
43
- $files = Get-ChildItem $toolsDir -include *.exe -recurse
43
+ $files = Get-ChildItem $toolsDir -filter *.exe -Recurse -File
44
44
foreach ($file in $files) {
45
- if (!$file.Name.Equals("func.exe")) {
45
+ if (!$file.Name.Equals("func.exe") -or (!($file.DirectoryName -eq $toolsDir) -and
46
+ $file.Name.Equals("func.exe"))) {
46
47
#generate an ignore file
47
48
New-Item "$file.ignore" -type file -force | Out-Null
49
+ $ignoreFilePath = Join-Path -Path $file.DirectoryName -ChildPath "$($file.Name).ignore"
50
+ New-Item -Path $ignoreFilePath -Type File -Force | Out-Null
48
51
}
49
52
}
50
53
You can’t perform that action at this time.
0 commit comments