diff --git a/dapinstall.sh b/dapinstall.sh index 7e0bdfc..f5d4857 100755 --- a/dapinstall.sh +++ b/dapinstall.sh @@ -6,8 +6,11 @@ install_node_dap() { npm -g install gulp mkdir -p src cd src - git clone https://github.com/microsoft/vscode-node-debug2.git + if [ ! -d vscode-node-debug2 ]; then + git clone https://github.com/microsoft/vscode-node-debug2.git + fi cd vscode-node-debug2 + git pull npm install gulp build popd 2>/dev/null diff --git a/lspinstall.sh b/lspinstall.sh index 3b0b4e6..425ccbf 100755 --- a/lspinstall.sh +++ b/lspinstall.sh @@ -39,7 +39,8 @@ install_lsp_terraform() { TFLSVER=${TFLSVER:-0.17.1} TFLSARCH=${TFLSARCH:-amd64} TFLSOS=${TFLSOS:-$mcode} - curl -fLo "${HOME}"/bin/terraform-ls.zip "https://releases.hashicorp.com/terraform-ls/${TFLSVER}/terraform-ls_${TFLSVER}_${TFLSOS}_${TFLSARCH}.zip" + curl -sfLo "${HOME}"/bin/terraform-ls.zip "https://releases.hashicorp.com/terraform-ls/${TFLSVER}/terraform-ls_${TFLSVER}_${TFLSOS}_${TFLSARCH}.zip" + rm "$HOME"/bin/terraform-ls unzip "${HOME}"/bin/terraform-ls.zip -d "${HOME}"/bin rm "${HOME}"/bin/terraform-ls.zip chmod 755 "${HOME}"/bin/terraform-ls