diff options
| author | jdhao <jdhao@hotmail.com> | 2022-09-25 11:01:00 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2022-09-25 11:01:30 +0800 |
| commit | 2fccb592938b93526d3326281bbf35cf65ccb1f7 (patch) | |
| tree | 0f7d7eede6636991f61151f63952d94b06028aed | |
| parent | 830297a973662fead7f25f396e760663a113a0c4 (diff) | |
fix: variable case not consistent, close #113
| -rwxr-xr-x | docs/nvim_setup_linux.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/nvim_setup_linux.sh b/docs/nvim_setup_linux.sh index 7ca20ee..249ab35 100755 --- a/docs/nvim_setup_linux.sh +++ b/docs/nvim_setup_linux.sh @@ -68,7 +68,7 @@ fi # Install some Python packages used by Nvim plugins. echo "Installing Python packages" -declare -a py_packages=("pynvim" 'python-lsp-server[all]' "black" "vim-vint" "pyls-isort" "pylsp-mypy") +declare -a PY_PACKAGES=("pynvim" 'python-lsp-server[all]' "black" "vim-vint" "pyls-isort" "pylsp-mypy") if [[ "$SYSTEM_PYTHON" = true ]]; then echo "Using system Python to install $(PY_PACKAGES)" @@ -76,12 +76,12 @@ if [[ "$SYSTEM_PYTHON" = true ]]; then # If we use system Python, we need to install these Python packages under # user HOME, since we do not have permissions to install them under system # directories. - for p in "${py_packages[@]}"; do + for p in "${PY_PACKAGES[@]}"; do pip install --user "$p" done else echo "Using custom Python to install $(PY_PACKAGES)" - for p in "${py_packages[@]}"; do + for p in "${PY_PACKAGES[@]}"; do "$CONDA_DIR/bin/pip" install "$p" done fi |
