You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are points in mktechdocs where the exit code doesn't work as expected.
After while loops, instead of this:
[[ $?!= 0 ]] &&exit$?
You need this to preserve the exit code. At the point of the exit, you'll get the exit code of the [[ ]] statement (0) instead of the the exit from the while loop.
RV=$?; [[ $RV!= 0 ]] &&exit$RV
The text was updated successfully, but these errors were encountered:
There are points in mktechdocs where the exit code doesn't work as expected.
After while loops, instead of this:
You need this to preserve the exit code. At the point of the exit, you'll get the exit code of the [[ ]] statement (0) instead of the the exit from the while loop.
The text was updated successfully, but these errors were encountered: