Skip to content

Commit

Permalink
Use double brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
danepitkin committed Jun 17, 2024
1 parent 5b70235 commit 8203675
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/scripts/install_pandas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if [ "${numpy}" = "nightly" ]; then
pip install --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple --pre numpy
elif [ "${numpy}" = "latest" ]; then
pip install numpy
elif [ "${numpy}" = [0-9]* ]; then
elif [[ ${numpy} = [0-9]* ]]; then
pip install numpy==${numpy}
else
pip install numpy${numpy}
Expand All @@ -43,7 +43,7 @@ elif [ "${pandas}" = "nightly" ]; then
pip install --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple --pre pandas
elif [ "${pandas}" = "latest" ]; then
pip install pandas
elif [ "${pandas}" = [0-9]* ]; then
elif [[ "${pandas}" = [0-9]* ]]; then
pip install pandas==${pandas}
else
pip install pandas${pandas}
Expand Down

0 comments on commit 8203675

Please sign in to comment.