Have you tried the using the successful execute variable $?
For example:

ipa is-ca
if [ "$?" == "0" ]; then
     printf "Is true.\n"
elif [ "$?" == "1" ]; then
     printf "Is failed.\n"
fi


Normally $? returns the exit code of the previously executed command. "0" is successful/true and everything else is an error of some sort.




Thank you for your time,

Boyd H. Ako

boyd.hanalei.ako@gmail.com


On Thu, Jun 27, 2019 at 7:08 AM lejeczek via FreeIPA-users <freeipa-users@lists.fedorahosted.org> wrote:
hi guys

hi @devel, I'm hoping you guys will stumble upon this here, which is a
question from me - I was thinking it would be great to have among ipa
commands a set of arguments/options which would give out when executed
either true or false, which to us admins/users would/could be of a great
help.

For example:

ipa is-renewal-master

ipa is-dns

ipa is-ca

etc.

I think it would be great to have such little bits in the toolkit.
Anybody else?

p.s. can't do no plugins (expressionless)

many thanks, L.

_______________________________________________
FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org
To unsubscribe send an email to freeipa-users-leave@lists.fedorahosted.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedorahosted.org