usage of printf improved, format and ensuring root privileges for setup scripts now is more reliable

This commit is contained in:
m8in
2026-05-08 00:13:12 +02:00
parent 1c94a26710
commit ee114ee732
7 changed files with 40 additions and 52 deletions
+5 -6
View File
@@ -1,11 +1,10 @@
#!/bin/bash
source ${CUSTOM_CIS_ROOT:-/}./cis/core/base.module.sh
if [ $(id -u) -ne 0 ]; then
sudo "${0}" "${1}" && exit 0
exit 1
fi
[ "$(id -u)" != "0" ] \
&& sudo "${0}" "${1}" \
&& exit 0
source /cis/core/base.module.sh