API: '--get-branch' exit code is 1
Closed this issue · 2 comments
cubanpit commented
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 code 1
.
This is not an expected behaviour and makes it less convenient to use the API in a script with set -e
enabled (exit at any error).
Manjaro stable up-to-date
pacman-mirrors 4.2.0
fhdk commented
I see what you mean. I will change so it prints the branch and exit with zero.
fhdk commented
This change should fix the issue (line 268->).
5c20a08#diff-8ac0971ff07be702ae74be17e89bea5d