mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-08-28 19:38:17 +00:00
refactor(ci): replace sudo commands with exec-priv.sh for improved privilege handling in CI workflows
This commit is contained in:
@@ -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 "$@"
|
||||
Reference in New Issue
Block a user