summary refs log tree commit diff
path: root/xi
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-02-13 20:14:48 +0100
committerLeah Neukirchen <leah@vuxu.org>2020-02-13 20:14:48 +0100
commit0320939979f15517ddbcf6bcad46c6ccc20d1161 (patch)
treec9387168d790200f3ba3ae2ecc73e301f8689faa /xi
parent124b3b3ae9e42582abcd85ab30fb1a3c3f894632 (diff)
downloadxtools-0320939979f15517ddbcf6bcad46c6ccc20d1161.tar.gz
xtools-0320939979f15517ddbcf6bcad46c6ccc20d1161.tar.xz
xtools-0320939979f15517ddbcf6bcad46c6ccc20d1161.zip
xi: update xbps if needed
Diffstat (limited to 'xi')
-rwxr-xr-xxi4
1 files changed, 4 insertions, 0 deletions
diff --git a/xi b/xi
index a5cd21e..d0c9a96 100755
--- a/xi
+++ b/xi
@@ -46,3 +46,7 @@ elif [ "$(whoami)" != root ]; then
 fi
 
 $SUDO xbps-install $ADDREPO -S "$@"
+if [ $? -eq 16 ]; then
+	$SUDO xbps-install -u xbps
+	$SUDO xbps-install $ADDREPO -S "$@"
+fi