#!/bin/bash
set -eou pipefail

name=miniconda
version=latest
arch=$(uname -m)
url=https://repo.anaconda.com/miniconda

case "$(uname -s)" in
	Linux*)     platform=Linux;;
	Darwin*)    platform=MacOSX;;
	*)          platform=;;
esac 

if [[ -z $platform ]]; then
	echo "Unsupported platform"
	exit 1
fi

tmp_dir=$(mktemp -d) && cd $tmp_dir && echo $tmp_dir

curl -o installer.sh $url/Miniconda3-${version}-${platform}-${arch}.sh
bash installer.sh

cd -


#!/bin/bash
set -eou pipefail

name=miniconda
version=latest
arch=x86_64
url=https://repo.anaconda.com/miniconda

case "$(uname -s)" in
	Linux*)     platform=Linux;;
	Darwin*)    platform=MacOSX;;
	*)          platform=;;
esac 

if [[ -z $platform ]]; then
	echo "Unsupported platform"
	exit 1
fi

tmp_dir=$(mktemp -d) && cd $tmp_dir && echo $tmp_dir

curl -o installer.sh $url/Miniconda3-${version}-${platform}-${arch}.sh
bash installer.sh

cd -


--- 
+++ 
@@ -3,7 +3,7 @@
 
 name=miniconda
 version=latest
-arch=$(uname -m)
+arch=x86_64
 url=https://repo.anaconda.com/miniconda
 
 case "$(uname -s)" in
Use uname to get arch.
