From d2eb376cd10b2f8f3330f5275e12cc1222617b1d Mon Sep 17 00:00:00 2001 From: Lucas Garcia Date: Fri, 21 May 2021 15:53:11 -0300 Subject: [PATCH] change version and repair command to rm container --- .semver.yaml | 2 +- package.json | 4 ++-- src/util/docker.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.semver.yaml b/.semver.yaml index f5f9299..7d5c5b7 100644 --- a/.semver.yaml +++ b/.semver.yaml @@ -1,4 +1,4 @@ alpha: 0 beta: 0 rc: 0 -release: v1.9.0 +release: v2.0.0 diff --git a/package.json b/package.json index 7a43c3f..88dd8c6 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "horusec", "displayName": "Horusec", "description": "Horusec is an open source tool that improves identification of vulnerabilities in your project with just one command.", - "version": "1.9.0", + "version": "2.0.0", "publisher": "ZupInnovation", "repository": "https://github.com/ZupIT/horusec-extensions/tree/master/horusec-vscode", "icon": "resources/horus_icon.png", @@ -165,4 +165,4 @@ "fs": "0.0.1-security", "uuid": "^8.3.1" } -} +} \ No newline at end of file diff --git a/src/util/docker.ts b/src/util/docker.ts index 1dd8de0..c231c66 100644 --- a/src/util/docker.ts +++ b/src/util/docker.ts @@ -1,7 +1,7 @@ import { platform } from 'os'; import * as vscode from 'vscode'; -const cliImage = 'horuszup/horusec-cli:v1.10.3'; +const cliImage = 'horuszup/horusec-cli:v2.0.0'; const containerName = 'horusec-cli'; export function getStartCommand(): string { @@ -15,7 +15,7 @@ export function getStartCommand(): string { } export function getRemoveContainerCommand(): string { - return `docker rm $(docker ps -a | awk '{ print $1,$2 }' | grep horuszup | awk '{print $1 }') -f`; + return `docker rm ${containerName} -f`; } function getStartCommandWindows() {