From 07031ae6c97eee6dec4076b386a4ba3981efd30a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Thu, 24 Oct 2024 16:04:11 -0400 Subject: [PATCH] update check for sudo in workflow --- .github/workflows/playwright.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 24c4f45..886cd1c 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -15,7 +15,7 @@ jobs: node-version: lts/* - name: Install dependencies run: | - which sudo || apt-get update && apt-get install sudo + [ -z $(command -v sudo) ] && apt-get update && apt-get install sudo sudo apt-get update sudo apt-get install -y jq xdg-utils xvfb curled=$(curl -L https://github.com/obsidianmd/obsidian-releases/raw/refs/heads/master/desktop-releases.json | jq .latestVersion | sed s/\"//g)