update check for sudo in workflow
Some checks failed
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
parent a1ab45ffaa
commit 07031ae6c9
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -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)