1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-10 21:30:06 +02:00
copilot/bin/setup
Raoul Millais 0992953121 Setup fixes for OSX
- Use a more robust way of determining the location of the setup script
- Style fix: make INCLUDE path constant
2016-10-24 11:44:20 +01:00

23 lines
511 B
Bash
Executable File

#! /usr/bin/env bash
#
# Prelude
#
set -euo pipefail
IFS=$'\n\t'
# Beware of CDPATH gotchas causing cd not to work correctly when a user
# has set this in their environment
# https://bosker.wordpress.com/2012/02/12/bash-scripters-beware-of-the-cdpath/
unset CDPATH
readonly INCLUDE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. "${INCLUDE}"/setup_tools
#
# Main
#
ensure_prerequisites
ensure_docker_config_matches_triton_config_and_capture_triton_details
ensure_triton_cns_is_enabled
write_env_file