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
@@ -1,8 +1,8 @@
#!/bin/bash
[ "$(id -u)" != "0" ] \
&& sudo "${0}" \
&& exit 0
if [ $(id -u) -ne 0 ]; then
sudo "${0}" && exit 0
exit 1
fi
source /cis/core/base.module.sh