All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 4m23s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m30s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 4m2s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m6s
CI / Packaging test (push) Successful in 0s
Fix shellcheck SC2068 (unquoted array expansions), SC2145 (mixed string/array arguments), SC2328 (redirection in command substitution), SC2173 (untrapable signals), and SC2148 (missing shebang) errors across 14 script files.
Also configure scripts/Makefile with --severity=error so that only errors (not warnings or notes) cause check failures. To be tightened by follow-up commits.
Assisted-by: unsloth/Qwen3.6-35B-A3B-GGUF:IQ4_NL and pi.devSigned-off-by: Jan Lindemann <jan@janware.com>
18 lines
384 B
Bash
18 lines
384 B
Bash
#!/bin/bash
|
|
|
|
reason=""
|
|
systemctl="/usr/bin/systemctl"
|
|
|
|
if [ "$(ps -p 1 -o comm=)" != "systemd" ]; then
|
|
reason="Trying to run $exe in an environment not controlled by Systemd"
|
|
elif [ ! -x $systemctl ]; then
|
|
reason="Can't run $systemctl"
|
|
else
|
|
exec $systemctl "$@"
|
|
fi
|
|
|
|
title="------------ $reason ------------"
|
|
echo ",$title >"
|
|
echo "| Ignored: systemctl $*"
|
|
echo "\`$title <"
|
|
exit 0
|