Skip to content

Commit

Permalink
Add a disclaimer when installing unofficial packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dshafik committed Feb 5, 2018
1 parent b2f7a8b commit ddddffd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions command_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ func installPackage(repo string, forceBinary bool) error {

status.Stop()

if strings.HasPrefix(repo, "https://github.com/akamai/cli-") != true {
color.Cyan("Disclaimer: You are installing a third-party package, subject to its own terms and conditions. Akamai makes no warranty or representation with respect to the third-party package.")
}

if !installPackageDependencies(packageDir, forceBinary) {
os.RemoveAll(packageDir)
return cli.NewExitError("", 1)
Expand Down

0 comments on commit ddddffd

Please sign in to comment.