# Part picket from Exegol project with love <3 (https://github.com/ThePorgs/Exegol)
if[[$EUID -ne 0]];then
criticalecho "You must be a root user"
else
ifdeclare -f "$1" > /dev/null
then
if[[ -f '/.dockerenv']];then
echo -e "${GREEN}"
echo"This script is running in docker, as it should :)"
echo"If you see things in red, don't panic, it's usually not errors, just badly handled colors"
echo -e "${NOCOLOR}"
"$@"
else
echo -e "${RED}"
echo"[!] Careful : this script is supposed to be run inside a docker/VM, do not run this on your host unless you know what you are doing and have done backups. You have been warned :)"