Closed cubanpit closed 7 years ago
I see what you mean. I will change so it prints the branch and exit with zero.
This change should fix the issue (line 268->). https://github.com/manjaro/pacman-mirrors/commit/5c20a08e341cc89ea727e8e138bf6099826aaa7f#diff-8ac0971ff07be702ae74be17e89bea5d
Hi, I am trying to use
pacman-mirrors
in a script and I discovered the beautiful "API mode" that could help me in order to get the Manjaro branch of the users, the problem is that the command returns the right branch but exit with error code1
. This is not an expected behaviour and makes it less convenient to use the API in a script withset -e
enabled (exit at any error).Manjaro stable up-to-date
pacman-mirrors 4.2.0