mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-04-06 02:55:49 +00:00
8 lines
211 B
Bash
8 lines
211 B
Bash
#!/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 "$@"
|