From 709a5fa453c0a40cb77d20d5455979c0a2fa7a0c Mon Sep 17 00:00:00 2001 From: rkervella Date: Mon, 20 Jun 2022 15:23:17 -0700 Subject: [PATCH] Use `CommandName` as base directory --- client/command/alias/install.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/command/alias/install.go b/client/command/alias/install.go index 4cb1efa514..eae8932725 100644 --- a/client/command/alias/install.go +++ b/client/command/alias/install.go @@ -59,9 +59,9 @@ func installFromDir(aliasLocalPath string, con *console.SliverConsoleClient) { con.PrintErrorf("Error parsing %s: %s", ManifestFileName, err) return } - installPath := filepath.Join(assets.GetAliasesDir(), filepath.Base(manifest.Name)) + installPath := filepath.Join(assets.GetAliasesDir(), filepath.Base(manifest.CommandName)) if _, err := os.Stat(installPath); !os.IsNotExist(err) { - con.PrintInfof("Alias '%s' already exists", manifest.Name) + con.PrintInfof("Alias '%s' already exists", manifest.CommandName) confirm := false prompt := &survey.Confirm{Message: "Overwrite current install?"} survey.AskOne(prompt, &confirm)