Only run AppArmor command if Ubuntu 24

This commit is contained in:
Adam Gastineau 2025-01-08 05:39:58 -08:00
parent d27cd840f9
commit f44017c6cd

View file

@ -39,7 +39,9 @@ runs:
- name: Setup Ubuntu Electron
if: ${{ runner.os == 'Linux' }}
run: |
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
if grep -q "Ubuntu 24" /etc/os-release; then
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
fi
shell: bash
- run: |
echo "::group::npm ci"