Skip to content

Checking return code on commands #435

@blha303

Description

@blha303

After each command in bash, the return code can be tested with $?. A command can also run dependent on another command succeeding with &&. This would be particularly useful if, as in the below screenshot, a directory wasn't created, and all the subsequent processes failed.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions