From af2c0a15371058ba93d6bb423b3fe90e45380d7a Mon Sep 17 00:00:00 2001 From: "Jason St. John" Date: Fri, 15 Nov 2013 23:56:05 -0500 Subject: pacscripts: Improve error message when sudo binary is not found Signed-off-by: Jason St. John Signed-off-by: Allan McRae --- contrib/pacscripts.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/pacscripts.sh.in b/contrib/pacscripts.sh.in index 8453f9c8..da7c55a9 100644 --- a/contrib/pacscripts.sh.in +++ b/contrib/pacscripts.sh.in @@ -71,8 +71,8 @@ spacman() { pacman "$@" else if ! type -p sudo; then - error "Cannot find the sudo binary! Is sudo installed?" - error "Otherwise, try to run the program as root" + error "Cannot find the sudo binary!" + error "${myname} requires root privileges. Either install \"sudo\" or run as root." exit 1 else sudo pacman "$@" -- cgit v1.2.3-24-g4f1b