diff options
author | Leah Neukirchen <leah@vuxu.org> | 2020-02-13 20:14:48 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2020-02-13 20:14:48 +0100 |
commit | 0320939979f15517ddbcf6bcad46c6ccc20d1161 (patch) | |
tree | c9387168d790200f3ba3ae2ecc73e301f8689faa /xi | |
parent | 124b3b3ae9e42582abcd85ab30fb1a3c3f894632 (diff) | |
download | xtools-0320939979f15517ddbcf6bcad46c6ccc20d1161.tar.gz xtools-0320939979f15517ddbcf6bcad46c6ccc20d1161.tar.xz xtools-0320939979f15517ddbcf6bcad46c6ccc20d1161.zip |
xi: update xbps if needed
Diffstat (limited to 'xi')
-rwxr-xr-x | xi | 4 |
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 |