Skip to content

Commit

Permalink
fix build script
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <michaelsv@jfrog.com>
  • Loading branch information
sverdlov93 committed Sep 12, 2023
1 parent d6e036d commit 54511b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utils/coreutils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ func SetPermissionsRecursively(dirPath string, mode os.FileMode) error {
return nil
})
if err != nil {
err = errorutils.CheckErrorf("failed while setting permission to '%s' files: %s", dirPath, err.Error())
return errorutils.CheckErrorf("failed while setting permission to '%s' files: %s", dirPath, err.Error())
}
return nil
}
2 changes: 1 addition & 1 deletion xray/utils/analyzermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func GetAnalyzerManagerDownloadPath() (string, error) {
}

func GetAnalyzerManagerVersion() string {
if analyzerManagerVersion, exists := os.LookupEnv(jfrogCliAnalyzerManagerVersionEnvVariable); exists && analyzerManagerVersion != "" {
if analyzerManagerVersion := os.Getenv(jfrogCliAnalyzerManagerVersionEnvVariable); analyzerManagerVersion != "" {
return analyzerManagerVersion
}
return defaultAnalyzerManagerVersion
Expand Down

0 comments on commit 54511b1

Please sign in to comment.