From ddddffda66516a4abf8be8e7976d771c4c9c050f Mon Sep 17 00:00:00 2001 From: Davey Shafik Date: Mon, 5 Feb 2018 15:01:24 -0800 Subject: [PATCH] Add a disclaimer when installing unofficial packages --- command_install.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/command_install.go b/command_install.go index 1a25f9b..cde8b56 100644 --- a/command_install.go +++ b/command_install.go @@ -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)