diff --git a/.local/bin/xr b/.local/bin/xr index 5b30c0b..7b3a741 100755 --- a/.local/bin/xr +++ b/.local/bin/xr @@ -22,4 +22,10 @@ do_remove() { SUDO=$(which_sudo) do_remove -R "$@" -exit $? +status=$? +if [ $status -eq 16 ]; then + do_install -u xbps && + do_install -S "$@" +else + exit $status +fi