Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehrdad Niknami committed Dec 28, 2019
1 parent d85f6d1 commit fa383bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/osx-install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
brew install pyenv
py_full_version="${TRAVIS_PYTHON_VERSION}"
if [ -n "${py_full_version##*.*.*}" ]; then # Do we have the full version number?
pyenv install "$[py_full_version}"
pyenv install "${py_full_version}"
else
git clone --depth=1 "https://github.com/momo-lab/xxenv-latest.git" "$(pyenv root)/plugins/xxenv-latest"
pyenv install-latest "${py_full_version}"
Expand Down
8 changes: 4 additions & 4 deletions scripts/windows-install.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
urlbase="https://www.python.org/ftp/python/"
py_base_version="$1"
if [ -n "$[py_base_version}" ]; then
if [ -n "${py_base_version}" ]; then
py_base_version="$(printf "%s" "${TRAVIS_PYTHON_VERSION}" | sed 's/[][\\\.]/\\\0/g')" # escape for sed
fi
py_full_version="$(curl -s -L --compressed "${urlbase}" | sed -n 's/.*<a href="\(${py_base_version}\(\.[0-9]\+\)*\)\/\?">.*/\1/p' | tail -n 1)"
py_full_version="$(curl -s -L "${urlbase}" | sed -n "s/.*<a href=\"\(${py_base_version}\(\.[0-9]\+\)*\)\/\?\">.*/\1/p" | tail -n 1)"
if [ -n "${py_full_version}" ]; then
arch_suffix=""
if [ "${HOSTTYPE}" = "x86_64" ]; then
Expand All @@ -16,9 +16,9 @@ if [ -n "${py_full_version}" ]; then
MSYS2_ARG_CONV_EXCL="*" "${installer}" /quiet PrependPath=1 InstallAllUsers=1 TargetDir="${targetdir}"
python="${targetdir}\python.exe"
rm -f -- "${installer}"
"${python}" -m venv env
"${python}" -m venv venv
(
. "env/Scripts/activate"
. "venv/Scripts/activate"
python -m pip install -U pip
python -m pip install -r requirements.txt
)
Expand Down

0 comments on commit fa383bf

Please sign in to comment.