From 2f8edd92f3f548681022850d34e3a84cdba9353f Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Mon, 26 Sep 2022 09:30:43 +0200 Subject: [PATCH] feat: add DISABLE_UPDATE env to disable updates --- prepare_vscode.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/prepare_vscode.sh b/prepare_vscode.sh index c653028..be83ffb 100755 --- a/prepare_vscode.sh +++ b/prepare_vscode.sh @@ -100,7 +100,10 @@ setpath "product" "reportIssueUrl" "https://github.com/VSCodium/vscodium/issues/ setpath "product" "requestFeatureUrl" "https://go.microsoft.com/fwlink/?LinkID=533482" setpath "product" "tipsAndTricksUrl" "https://go.microsoft.com/fwlink/?linkid=852118" setpath "product" "twitterUrl" "https://go.microsoft.com/fwlink/?LinkID=533687" -setpath "product" "updateUrl" "https://vscodium.now.sh" + +if [[ "${DISABLE_UPDATE}" != "yes" ]]; then + setpath "product" "updateUrl" "https://vscodium.now.sh" +fo if [[ "${VSCODE_QUALITY}" == "insider" ]]; then setpath "product" "nameShort" "VSCodium - Insiders"