pacscripts: Improve error message when sudo binary is not found

Signed-off-by: Jason St. John <jstjohn@purdue.edu>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Jason St. John 2013-11-15 23:56:05 -05:00 committed by Allan McRae
parent 20127e732c
commit af2c0a1537
1 changed files with 2 additions and 2 deletions

View File

@ -71,8 +71,8 @@ spacman() {
pacman "$@" pacman "$@"
else else
if ! type -p sudo; then if ! type -p sudo; then
error "Cannot find the sudo binary! Is sudo installed?" error "Cannot find the sudo binary!"
error "Otherwise, try to run the program as root" error "${myname} requires root privileges. Either install \"sudo\" or run as root."
exit 1 exit 1
else else
sudo pacman "$@" sudo pacman "$@"