fix root message

This commit is contained in:
zawz 2020-05-26 11:31:50 +02:00
parent 7d872c8466
commit 881cfa3956

View file

@ -50,7 +50,7 @@ shift $((OPTIND-1))
if [ "$(id | cut -d"=" -f2 | cut -d"(" -f1)" -eq 0 ] && [ "$1" != "force" ]
then
echo "Cannot run as root" >&2
echo "Use '$(basename "$0") force' to force running as root"
echo "Use '"'"'$(basename "$0")'"'"' force to force running as root"
exit 10
else
which sudo >/dev/null || { echo "sudo not installed" >&2 && exit 11; }