mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04: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 "$@"
|
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 "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user