correct exit status handling
This commit is contained in:
parent
9ae4f36397
commit
7bda825c1a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue