Skip to content

Commit

Permalink
Skip adding ompletions to profile more than once
Browse files Browse the repository at this point in the history
  • Loading branch information
hilli committed Feb 25, 2024
1 parent 25a799a commit 29e11c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ scoops:
- Write-Host 'Running postinstall command'
- if(!(Test-Path $PROFILE.CurrentUserCurrentHost -PathType Leaf)) { New-Item -Path $PROFILE.CurrentUserCurrentHost -ItemType file -Force }
- $scoopPrefix = $(scoop prefix go-kef-w2)
- Add-Content -Path $PROFILE.CurrentUserCurrentHost -Value ". $scoopPrefix\completions\kefw2.ps1"
- $profilecontent = Get-Content $PROFILE.CurrentUserCurrentHost
- if(-not($profilecontent | select-string -pattern "$scoopPrefix\completions\kefw2.ps1" -CaseSensitive -SimpleMatch)) { Add-Content -Path $PROFILE.CurrentUserCurrentHost -Value ". $scoopPrefix\completions\kefw2.ps1" }

nfpms:
- file_name_template: "{{ .ConventionalFileName }}"
Expand Down

0 comments on commit 29e11c0

Please sign in to comment.