1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 06:00:06 +02:00

Setup fixes for OSX

- Use a more robust way of determining the location of the setup script
- Style fix: make INCLUDE path constant
This commit is contained in:
Raoul Millais 2016-10-24 11:42:38 +01:00
parent 32e7704b38
commit 0992953121

View File

@ -3,11 +3,15 @@
#
# Prelude
#
INCLUDE=$(dirname $(readlink -f $0))
. $INCLUDE/setup_tools
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