Merge pull request #1931 from triazo/dev

Use builtin cd for venv-activate.sh
pull/2024/head
Åke 2019-02-27 17:50:31 +01:00 committed by GitHub
commit 6466659094
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ function main() {
# Prevent running in script then exiting immediately # Prevent running in script then exiting immediately
echo "ERROR: Invoke with 'source venv-activate.sh' or '. venv-activate.sh'" echo "ERROR: Invoke with 'source venv-activate.sh' or '. venv-activate.sh'"
else else
local SRC_DIR="$( cd "$( dirname "${BASH_SOURCE}" )" ; pwd -P )" local SRC_DIR="$( builtin cd "$( dirname "${BASH_SOURCE}" )" ; pwd -P )"
source ${SRC_DIR}/.venv/bin/activate source ${SRC_DIR}/.venv/bin/activate
# Provide an easier to find "mycroft-" prefixed command. # Provide an easier to find "mycroft-" prefixed command.