Skip to content

Commit

Permalink
use the proper equality operator
Browse files Browse the repository at this point in the history
  • Loading branch information
MetricMike committed Mar 5, 2021
1 parent 1f535b3 commit dc4f90a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/list-bin-paths
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -euo pipefail
local major_version="${ASDF_INSTALL_VERSION:0:1}"
local os_distribution="$(uname -s)"

if [[ "${os_distribution}" -eq "Darwin" && "${major_version}" -eq "2" ]]; then
if [[ "${os_distribution}" == "Darwin" && "${major_version}" == "2" ]]; then
echo "aws-cli"
else
echo "venv/bin"
Expand Down
2 changes: 1 addition & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ install_version() {
fail "asdf-awscli supports release installs only"
fi

if [[ "${os_distribution}" -eq "Darwin" && "${major_version}" -eq "2" ]]; then
if [[ "${os_distribution}" == "Darwin" && "${major_version}" == "2" ]]; then
(
local release_file="${install_path}/awscli-${version}.pkg"
local url="https://awscli.amazonaws.com/AWSCLIV2-${version}.pkg"
Expand Down

0 comments on commit dc4f90a

Please sign in to comment.