Skip to content

Commit

Permalink
Fix get_architecture function
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontes11 committed May 11, 2024
1 parent dc331c7 commit 931046e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ function get_user_home() {

function get_architecture() {
ARCH=$(uname -m)
if [ $ARCH == "x86_64" ]; then
if [ $ARCH = "x86_64" ]; then
echo "amd64"
elif [ $ARCH == "aarch64" ]; then
elif [ $ARCH = "aarch64" ]; then
echo "arm64"
elif [[ $ARCH == arm* ]]; then
elif [[ $ARCH = "arm" ]]; then
echo "arm"
else
echo ""
Expand Down

0 comments on commit 931046e

Please sign in to comment.