SyntaxFix
Write A Post
Hire A Developer
Questions
This is a solution that came up with for a similar issue
exit_status () { if [ $? = 0 ] then true else false fi }
usage:
do-command exit_status && echo "worked" || echo "didnt work"