mirror of
https://github.com/distribution/distribution.git
synced 2025-08-05 00:49:35 +00:00
v1.3.0 of azidentity introduces support to workload identity. Signed-off-by: Flavian Missi <fmissi@redhat.com>
15 lines
287 B
Go
15 lines
287 B
Go
package browser
|
|
|
|
import (
|
|
"errors"
|
|
"os/exec"
|
|
)
|
|
|
|
func openBrowser(url string) error {
|
|
err := runCmd("xdg-open", url)
|
|
if e, ok := err.(*exec.Error); ok && e.Err == exec.ErrNotFound {
|
|
return errors.New("xdg-open: command not found - install xdg-utils from ports(8)")
|
|
}
|
|
return err
|
|
}
|