From 0f130c576a586e8539431e66aba0cdd77b342ddd Mon Sep 17 00:00:00 2001 From: Rafid Bin Mostofa Date: Sun, 24 Nov 2024 11:16:43 +0100 Subject: [PATCH] fix(postinst/admin): update vscode version check (#14) --- postinst/admin/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postinst/admin/postinst b/postinst/admin/postinst index 083fa90..b332cd7 100755 --- a/postinst/admin/postinst +++ b/postinst/admin/postinst @@ -103,7 +103,7 @@ check_sublime_text() { check_vscode() { local version cmd="code" echo -n "Checking $cmd ($(which $cmd))... " - version="$($cmd --version | grep -Po "^\d+\.\d+\.\d+$")" + version="$($cmd --version --no-sandbox --user-data-dir /tmp | grep -Po "^\d+\.\d+\.\d+$")" check_version "$version" "1.94.2" }