summary refs log tree commit diff
diff options
context:
space:
mode:
-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