diff --git a/VERSION b/VERSION index 6ee33ba..79e0dd8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.45 +0.1.46 diff --git a/formula/ih-core.rb b/formula/ih-core.rb index d9a421a..63fadfe 100644 --- a/formula/ih-core.rb +++ b/formula/ih-core.rb @@ -1,5 +1,5 @@ class IhCore < Formula - VERSION="0.1.45" + VERSION="0.1.46" desc "Brew formula for installing core tools used at Included Health engineering." homepage "https://github.com/ConsultingMD/homebrew-ih-public" license "CC BY-NC-ND 4.0" diff --git a/lib/core/rancher/step.sh b/lib/core/rancher/step.sh index b381bea..a75985e 100644 --- a/lib/core/rancher/step.sh +++ b/lib/core/rancher/step.sh @@ -114,13 +114,12 @@ function ih::setup::core.rancher::install() { # Installation and configuration of Rancher Desktop for _ in 1 2 3; do - # Check if we have a Mac M1 and the terminal is running over x86 - if [[ $(sysctl -n sysctl.proc_translated) -eq 1 ]] && [ $(arch) = "i386" ]; then - arch -arm64 -c brew reinstall ih-rancher + # Check if we have a M1 Mac + if [ "$(uname -m)" = "arm64" ]; then + arch -arm64 brew reinstall ih-rancher else brew reinstall ih-rancher fi - CASKSUCCEEDED=$? if [ $CASKSUCCEEDED -eq 0 ]; then break