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

This commit is contained in:
m8in committed 2026-05-08 00:13:12 +02:00
1 parent 1c94a26710
commit ee114ee732
7 files changed
+40 -52

No files matched your search

+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