Skip to content

Syntax issue with If Statement #2

Description

@n-morrison

if [ $status req 5]; then Should read:
if [ $status -eq 5 ]; then

The 'req' is not a valid Numeric relational operator. plus there is a Space missing after the '5', before the Closing ']'.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions