mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +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.
10 lines
364 B
Bash
Executable File
10 lines
364 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Meant to be linked to from `dev-env/bin`, symlink should be named after the
|
|
# tool. Execute a Nix tool from a derivation that creates a `result-bin`
|
|
# directory.
|
|
|
|
DADE_CURRENT_SCRIPT_DIR="$( dirname $( readlink -f "${BASH_SOURCE[0]}" ) )"
|
|
source "$DADE_CURRENT_SCRIPT_DIR/../lib/dade-common"
|
|
base=$(basename $0)
|
|
execTool $base bin $base "$@"
|