Skip to content

Commit

Permalink
Fix arch detection in non-Debian distros (#93)
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Musse <fdmusse@gmail.com>
  • Loading branch information
musse committed Feb 11, 2024
1 parent 4be822c commit fc8d4ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kind.sh
Expand Up @@ -58,10 +58,10 @@ main() {

local arch
case $(uname -m) in
i386) arch="386" ;;
i686) arch="386" ;;
x86_64) arch="amd64" ;;
arm|aarch64) dpkg --print-architecture | grep -q "arm64" && arch="arm64" || arch="arm" ;;
i386) arch="386" ;;
i686) arch="386" ;;
x86_64) arch="amd64" ;;
arm|aarch64|arm64) arch="arm64" ;;
esac
local cache_dir="${RUNNER_TOOL_CACHE}/kind/${version}/${arch}"

Expand Down

0 comments on commit fc8d4ed

Please sign in to comment.