From 72761da09d19f087ab18ea1baa0d213ce7f0d7e1 Mon Sep 17 00:00:00 2001 From: Timm Heuss Date: Fri, 4 Oct 2024 23:47:01 +0200 Subject: [PATCH] Check if VSCode is installed first --- .Brewfile | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/.Brewfile b/.Brewfile index f1a014d..3e918ec 100644 --- a/.Brewfile +++ b/.Brewfile @@ -204,21 +204,23 @@ end -vscode "dakara.transformer" -vscode "dotjoshjohnson.xml" -vscode "esbenp.prettier-vscode" -vscode "exiasr.hadolint" -vscode "file-icons.file-icons" -vscode "formulahendry.auto-close-tag" -vscode "formulahendry.auto-rename-tag" -vscode "github.vscode-github-actions" -vscode "hashicorp.terraform" -vscode "johnpapa.vscode-peacock" -vscode "ms-azuretools.vscode-docker" -vscode "ms-vscode-remote.remote-containers" -vscode "nhoizey.gremlins" -vscode "redhat.vscode-xml" -vscode "redhat.vscode-yaml" -vscode "streetsidesoftware.code-spell-checker" -vscode "timonwong.shellcheck" -vscode "yzhang.markdown-all-in-one" +if system 'which code &> /dev/null' + vscode "dakara.transformer" + vscode "dotjoshjohnson.xml" + vscode "esbenp.prettier-vscode" + vscode "exiasr.hadolint" + vscode "file-icons.file-icons" + vscode "formulahendry.auto-close-tag" + vscode "formulahendry.auto-rename-tag" + vscode "github.vscode-github-actions" + vscode "hashicorp.terraform" + vscode "johnpapa.vscode-peacock" + vscode "ms-azuretools.vscode-docker" + vscode "ms-vscode-remote.remote-containers" + vscode "nhoizey.gremlins" + vscode "redhat.vscode-xml" + vscode "redhat.vscode-yaml" + vscode "streetsidesoftware.code-spell-checker" + vscode "timonwong.shellcheck" + vscode "yzhang.markdown-all-in-one" +end