mirror of
https://github.com/m8tin/cis.git
synced 2026-06-02 14:56:58 +02:00
usage of printf improved, format and ensuring root privileges for setup scripts now is more reliable
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user