11 lines
282 B
Bash
11 lines
282 B
Bash
#!/usr/bin/env bash
|
|
set -Eeuo pipefail
|
|
|
|
output=$(mktemp)
|
|
trap 'rm -f "$output"' EXIT
|
|
if bash "$(dirname "$0")/install-runner.sh" >"$output" 2>&1; then
|
|
echo 'Runner installer unexpectedly succeeded without root.' >&2
|
|
exit 1
|
|
fi
|
|
grep -qx 'ERROR: run this script as root' "$output"
|