Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for EnvFile (0.14 sec)

  1. Makefile

    .PHONY: default shell
    
    else
    
    # If we are not in build container, we need a workaround to get environment properly set
    # Write to file, then include
    $(shell mkdir -p out)
    $(shell $(shell pwd)/common/scripts/setup_env.sh envfile > out/.env)
    include out/.env
    # An export free of arguments in a Makefile places all variables in the Makefile into the
    # environment. This behavior may be surprising to many that use shell often, which simply
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 11 18:29:15 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  2. common/scripts/setup_env.sh

          DOCKER_GID
          IMG
          IMAGE_NAME
          IMAGE_VERSION
          REPO_ROOT
          BUILD_WITH_CONTAINER
    )
    
    # For non container build, we need to write env to file
    if [[ "${1}" == "envfile" ]]; then
      # ! does a variable-variable https://stackoverflow.com/a/10757531/374797
      for var in "${VARS[@]}"; do
        echo "${var}"="${!var}"
      done
    else
      for var in "${VARS[@]}"; do
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 14:37:27 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top