tools

    • Awk
    • Awscli
    • Bash
    • Brew
    • Curl
    • Git
    • Jq
    • Mysql
    • Openssl
    • Psql
    • Python
    • SSH
    • Zip

    Bash

      • require variables
      • Resources

    bash#

    require variables#

    REQUIRED_VARS=(
      FOO_VAR
      BAR_VAR
      BAZ_VAR
    )
    
    for v in ${REQUIRED_VARS[@]}; do
      if [[ -z "${!v}" ]]; then
        echo "${v} environment variable is not populated"
      fi
    done

    Resources#

    • GNU Bash Reference Manual
    • Google Shell Style Guide
    Backward Awscli Brew Forward
      • require variables
      • Resources