mirror of
https://github.com/moparisthebest/pacman
synced 2025-02-28 17:31:52 -05:00
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:
parent
20127e732c
commit
af2c0a1537
@ -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 "$@"
|
||||
|
Loading…
x
Reference in New Issue
Block a user