fix root message
This commit is contained in:
parent
7d872c8466
commit
881cfa3956
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ shift $((OPTIND-1))
|
||||||
if [ "$(id | cut -d"=" -f2 | cut -d"(" -f1)" -eq 0 ] && [ "$1" != "force" ]
|
if [ "$(id | cut -d"=" -f2 | cut -d"(" -f1)" -eq 0 ] && [ "$1" != "force" ]
|
||||||
then
|
then
|
||||||
echo "Cannot run as root" >&2
|
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
|
exit 10
|
||||||
else
|
else
|
||||||
which sudo >/dev/null || { echo "sudo not installed" >&2 && exit 11; }
|
which sudo >/dev/null || { echo "sudo not installed" >&2 && exit 11; }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue