correct exit status handling

This commit is contained in:
fanyx 2022-10-16 12:41:52 +02:00
parent 9ae4f36397
commit 7bda825c1a
1 changed files with 7 additions and 1 deletions

View File

@ -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