19 lines
651 B
Bash
Executable File
19 lines
651 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Source this file before local verification commands:
|
|
# source tools/dev-env.sh
|
|
|
|
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
repo_root="$(cd "${script_dir}/.." && pwd)"
|
|
|
|
if [[ -x "${repo_root}/.flutter-home/flutter/bin/flutter" ]]; then
|
|
export PATH="${repo_root}/.flutter-home/flutter/bin:${PATH}"
|
|
elif [[ -n "${FLUTTER_HOME:-}" && -x "${FLUTTER_HOME}/bin/flutter" ]]; then
|
|
export PATH="${FLUTTER_HOME}/bin:${PATH}"
|
|
elif [[ -x "${HOME}/sdks/flutter/bin/flutter" ]]; then
|
|
export PATH="${HOME}/sdks/flutter/bin:${PATH}"
|
|
fi
|
|
|
|
if [[ -d "${HOME}/.cargo/bin" ]]; then
|
|
export PATH="${HOME}/.cargo/bin:${PATH}"
|
|
fi
|