removed [[ TEST ]] && action form for if [[ TEST ]]; then action; fi for compatibility
This commit is contained in:
@@ -85,7 +85,9 @@ function backtrace
|
||||
# Test and exit if not root (or any UID 0 user)
|
||||
check_root()
|
||||
{
|
||||
[[ $NO_ROOT_CHECK == true ]] && return 0
|
||||
if [[ $NO_ROOT_CHECK == true ]]; then
|
||||
return 0
|
||||
fi
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
prnt E "Ce script doit être démarré en tant que root. Arrêt."
|
||||
die 4 --force
|
||||
|
||||
Reference in New Issue
Block a user