mirror of
https://github.com/yldio/copilot.git
synced 2024-11-13 06:40: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:
parent
32e7704b38
commit
0992953121
10
bin/setup
10
bin/setup
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user