mirror of
https://github.com/Quad4-Software/MeshChatX.git
synced 2026-08-18 09:49:09 -04:00
refactor(ci): replace sudo commands with exec-priv.sh for improved privilege handling in CI workflows
This commit is contained in:
parent
242325b0d2
commit
d5e4afc42b
6 changed files with 19 additions and 12 deletions
7
scripts/ci/exec-priv.sh
Normal file
7
scripts/ci/exec-priv.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
# Run a command with root privileges: use sudo only when not root (Docker/act often have no sudo).
|
||||
# Usage: sh scripts/ci/exec-priv.sh apt-get update
|
||||
set -eu
|
||||
|
||||
. "$(dirname "$0")/priv.sh"
|
||||
run_priv "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue