mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
d999a21ac3
The output of `cd` might be altered by `CDPATH` set on a system, leading to `dade` being broken because it cannot read the current path. Instead, using `readlink -f` seem to get the job done without side effects.
18 lines
412 B
Bash
Executable File
18 lines
412 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#set -e
|
|
|
|
DADE_CURRENT_SCRIPT_DIR="$( dirname $( readlink -f "${BASH_SOURCE[0]}" ) )"
|
|
PATH=$DADE_CURRENT_SCRIPT_DIR:$PATH
|
|
source "$DADE_CURRENT_SCRIPT_DIR/../lib/dade-common"
|
|
|
|
echo "* Preloading dev-env tools... Make sure you have VPN connected."
|
|
|
|
# run 'buildTool' on each of the tools.
|
|
tools=$(dadeListTools)
|
|
for tool in $tools; do
|
|
buildTool $tool out 1
|
|
done
|
|
|
|
echo "* Preloading done."
|
|
|