From 583853d6bcd02f9c85629b4098b6fd5cb7194565 Mon Sep 17 00:00:00 2001 From: Urban Wallasch Date: Sat, 18 Apr 2020 12:42:58 +0200 Subject: [PATCH] * Added check, if xbps-install is available at all. --- XbpsUI.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/XbpsUI.sh b/XbpsUI.sh index 01a4272..c254c43 100755 --- a/XbpsUI.sh +++ b/XbpsUI.sh @@ -25,6 +25,10 @@ if ! tty -s ; then fi # Make sure we can actually do anything meaningful: +if ! command -pv "xbps-install" > /dev/null ; then + echo "The xbps packaging system is not available, aborting." + exit 2 +fi SUDO='' if (( $EUID != 0 )); then if ! sudo -l xbps-install >/dev/null 2>&1 ; then -- 2.30.2