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

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

@ -15,7 +15,7 @@ jobs:
node-version: lts/* node-version: lts/*
- name: Install dependencies - name: Install dependencies
run: | run: |
which sudo || apt-get update && apt-get install sudo command -v sudo || apt-get update && apt-get install sudo
sudo apt-get update sudo apt-get update
sudo apt-get install -y jq xdg-utils xvfb 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) curled=$(curl -L https://github.com/obsidianmd/obsidian-releases/raw/refs/heads/master/desktop-releases.json | jq .latestVersion | sed s/\"//g)