Skip to content

Commit f7b4b7e

Browse files
committed
fix: correct condition
1 parent d57903c commit f7b4b7e

File tree

4 files changed

+4
-73
lines changed

4 files changed

+4
-73
lines changed

Makefile

Lines changed: 0 additions & 69 deletions
This file was deleted.

cmd/saml.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func newSamlCmd(r *Root) {
6767
return err
6868
}
6969

70-
allRoles := credentialexchange.MergeRoleChain(flags.role, r.rootFlags.roleChain, sc.flags.isSso)
70+
allRoles := credentialexchange.MergeRoleChain(flags.role, r.rootFlags.roleChain, flags.isSso)
7171
conf := credentialexchange.CredentialConfig{
7272
ProviderUrl: flags.providerUrl,
7373
PrincipalArn: flags.principalArn,

eirctl.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ tasks:
7474
- |
7575
mkdir -p .deps
7676
ldflags="-s -w -X \"github.com/{{.RepoOwner}}/{{.BinName}}/cmd.Version={{.Version}}\" -X \"github.com/{{.RepoOwner}}/{{.BinName}}/cmd.Revision={{.Revision}}\" -extldflags -static"
77-
CGO_ENABLED=0 GOPATH=$PWD/.deps GOOS=${BUILD_GOOS} GOARCH=${BUILD_GOARCH} go build -mod=readonly -buildvcs=false -ldflags="$ldflags" -o dist/{{.BinName}}-${BUILD_GOOS}${BUILD_GOARCH} .
77+
CGO_ENABLED=0 GOPATH=$PWD/.deps GOOS=${BUILD_GOOS} GOARCH=${BUILD_GOARCH} go build -mod=readonly -buildvcs=false -ldflags="$ldflags" -o dist/{{.BinName}}-${BUILD_GOOS}-${BUILD_GOARCH} .
7878
variations:
7979
- BUILD_GOOS: windows
8080
BUILD_GOARCH: amd64

internal/web/web.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func (web *Web) MustClose() {
227227
utils.Sleep(0.5)
228228
// remove process just in case
229229
// os.Process is cross platform safe way to remove a process
230-
if osprocess, err := os.FindProcess(web.launcher.PID()); err != nil {
231-
osprocess.Kill()
230+
if osprocess, err := os.FindProcess(web.launcher.PID()); err == nil && osprocess != nil {
231+
_ = osprocess.Kill()
232232
}
233233
}

0 commit comments

Comments
 (0)