daml/dev-env/bin/dade-env
Digital Asset GmbH 05e691f558 open-sourcing daml
2019-04-04 09:33:38 +01:00

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 "$@"