summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJason St. John <jstjohn@purdue.edu>2013-11-15 23:56:05 -0500
committerAllan McRae <allan@archlinux.org>2013-12-15 20:09:37 +1000
commitaf2c0a15371058ba93d6bb423b3fe90e45380d7a (patch)
treeb1ef4a7ea9510925cb2646bb3525fb7a262fe4d7 /contrib
parent20127e732c66897506449c38baff9ec1a893032c (diff)
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>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/pacscripts.sh.in4
1 files 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 "$@"