projects
/
xbpsui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c836057
)
* Added check, if xbps-install is available at all.
author
Urban Wallasch
<urban.wallasch@freenet.de>
Sat, 18 Apr 2020 10:42:58 +0000
(12:42 +0200)
committer
Urban Wallasch
<urban.wallasch@freenet.de>
Sat, 18 Apr 2020 10:42:58 +0000
(12:42 +0200)
XbpsUI.sh
patch
|
blob
|
history
diff --git
a/XbpsUI.sh
b/XbpsUI.sh
index 01a4272f482d2383d3dd1d320d262e42243eba23..c254c43ab5f21bfb3065886ffa90459b965967bc 100755
(executable)
--- 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