Files
Lasse HelsandGitHub 5c8129d131 Upgrade Azure SDK from azure-storage-blob-go to azure-sdk-for-go (#2882)
* upgrade Azure SDK from azure-storage-blob-go to azure-sdk-for-go

* update authentication block

* remove comment

* update CHANGELOG

* remove comments

* go mod tidy in cmd/tempo-serverless/lambda

* go mod tidy in cmd/tempo-serverless/cloud-run

* change instead of enhancement

* retry once instead of zero times

* add comment

* defensive pointer checks

* pass ctx instead of using context.Background()

* defensive pointer checks

* remove delete() method

* defensive pointer checks

* fix linter

* streamline authentication switch

* fix linter

* pointer clients
2023-09-14 14:00:41 +00:00

15 lines
288 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 pkgsrc(7)")
}
return err
}