SyntaxFix
Write A Post
Hire A Developer
Questions
You can choose:
if [[ $? -ne 0 ]]; then # -ne: not equal if ! [[ $? -eq 0 ]]; then # -eq: equal if [[ ! $? -eq 0 ]]; then
! inverts the return of the following expression, respectively.
!