Skip to content

Commit

Permalink
fixing mythic-cli issue
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Apr 9, 2024
1 parent 1d2f6a5 commit 5a34ffc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions Mythic_CLI/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 0.2.22 - 2024-04-09

### Changed

- Fixed an issue with wrapper payload installs that was checking the wrong environment variables

## 0.2.21 - 2024-03-21

### Changed
Expand Down
2 changes: 1 addition & 1 deletion Mythic_CLI/src/cmd/config/vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ package config

var (
// Version Mythic CLI version
Version = "v0.2.21"
Version = "v0.2.22"
)
4 changes: 2 additions & 2 deletions Mythic_CLI/src/cmd/internal/installservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func InstallFolder(installPath string, overWrite bool) error {
for _, f := range files {
if f.IsDir() {
log.Printf("[*] Processing Documentation for %s\n", f.Name())
if !config.GetMythicEnv().GetBool("documentation_use_volume") {
if !config.GetMythicEnv().GetBool("mythic_documentation_use_volume") {
if utils.DirExists(filepath.Join(workingPath, "documentation-docker", "content", "C2 Profiles", f.Name())) {
if overWrite || config.AskConfirm("[*] "+f.Name()+" documentation already exists. Replace current version? ") {
log.Printf("[*] Removing current version\n")
Expand Down Expand Up @@ -281,7 +281,7 @@ func InstallFolder(installPath string, overWrite bool) error {
for _, f := range files {
if f.IsDir() {
log.Printf("[*] Processing Documentation for %s\n", f.Name())
if config.GetMythicEnv().GetBool("documentation_use_volume") {
if !config.GetMythicEnv().GetBool("mythic_documentation_use_volume") {
if utils.DirExists(filepath.Join(workingPath, "documentation-docker", "content", "Wrappers", f.Name())) {
if overWrite || config.AskConfirm("[*] "+f.Name()+" documentation already exists. Replace current version? ") {
log.Printf("[*] Removing current version\n")
Expand Down

0 comments on commit 5a34ffc

Please sign in to comment.