Skip to content

Instantly share code, notes, and snippets.

@aleron75
Created August 12, 2016 12:33
Show Gist options
  • Select an option

  • Save aleron75/5b35f8b670ad24bffbca48c0370135ec to your computer and use it in GitHub Desktop.

Select an option

Save aleron75/5b35f8b670ad24bffbca48c0370135ec to your computer and use it in GitHub Desktop.

Revisions

  1. aleron75 created this gist Aug 12, 2016.
    9 changes: 9 additions & 0 deletions setup_db_status.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/bin/bash
    # use --no-ansi to avoid color characters
    message=$(bin/magento setup:db:status --no-ansi)
    if [[ ${message:0:3} == "All" ]];
    then
    exit 0 # 0 not required being default exit code; used for clarity
    else
    exit 1
    fi