mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 00:24:58 +00:00
Spelling (#1405)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
@@ -22,7 +22,7 @@ var PrivilegedPlugins = []string{
|
||||
"woodpeckerci/plugin-docker-buildx",
|
||||
}
|
||||
|
||||
// DefaultConfigOrder represent the priority in witch woodpecker serarch for a pipeline config by default
|
||||
// DefaultConfigOrder represent the priority in witch woodpecker search for a pipeline config by default
|
||||
// folders are indicated by supplying a trailing /
|
||||
var DefaultConfigOrder = [...]string{
|
||||
".woodpecker/",
|
||||
|
@@ -26,13 +26,13 @@ import (
|
||||
func WithContextSigtermCallback(ctx context.Context, f func()) context.Context {
|
||||
ctx, cancel := context.WithCancel(ctx)
|
||||
go func() {
|
||||
recivedSignal := make(chan os.Signal, 1)
|
||||
signal.Notify(recivedSignal, syscall.SIGINT, syscall.SIGTERM)
|
||||
defer signal.Stop(recivedSignal)
|
||||
receivedSignal := make(chan os.Signal, 1)
|
||||
signal.Notify(receivedSignal, syscall.SIGINT, syscall.SIGTERM)
|
||||
defer signal.Stop(receivedSignal)
|
||||
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
case <-recivedSignal:
|
||||
case <-receivedSignal:
|
||||
cancel()
|
||||
if f != nil {
|
||||
f()
|
||||
|
Reference in New Issue
Block a user