From: Urban Wallasch Date: Sat, 18 Apr 2020 10:42:58 +0000 (+0200) Subject: * Added check, if xbps-install is available at all. X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=583853d6bcd02f9c85629b4098b6fd5cb7194565;p=xbpsui.git * Added check, if xbps-install is available at all. --- 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