libs: made error message clearer and more consistent

This commit is contained in:
levasseur
2021-12-13 18:49:03 +01:00
parent bbd35ee3c6
commit d9af921417
6 changed files with 17 additions and 12 deletions

View File

@@ -134,7 +134,7 @@ check_root()
return 0
fi
if [[ $EUID -ne 0 ]]; then
prnt E "That script must be run with root privileges."
prnt E "check_root: That script must be run with root privileges."
die 4 --force
fi
}