mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
18 lines
309 B
Bash
Executable File
18 lines
309 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
if [[ $# -lt 1 ]]; then
|
|
cat <<EOF
|
|
Usage: $0 <cmd>
|
|
|
|
Execute 'cmd' in a shell with dev-env sourced.
|
|
|
|
EOF
|
|
exit 1
|
|
fi
|
|
|
|
DADE_CURRENT_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
eval "$("${DADE_CURRENT_SCRIPT_DIR}/../lib/dade-dump-profile")"
|
|
|
|
exec "$@"
|