<#836 provision script - yq installer fails> Issue...
# osctrl
g
#836 provision script - yq installer fails Issue created by ITJamie the yk installer in the provision script fails on x86_64 note the list of packages available on the latest yq github release Image the script that installs it
Copy code
# Install yq from releases (<https://github.com/mikefarah/yq>)
function install_yq() {
  local __arch="$(uname -i)"
  if [[ "$__arch" == "aarch64" ]]; then
    __arch="arm64"
  fi
  local __file="yq_linux_$__arch"
  local __url="<https://github.com/mikefarah/yq/releases/latest/download/$__file>"

  if ! [[ -f "/usr/bin/yq" ]]; then
    log  "Installing yq"
    sudo curl -sL "$__url" -o /usr/bin/yq
    sudo chmod a+x /usr/bin/yq
    yq --version
  else
    yq --version
  fi
}
Copy code
uname -i
x86_64
is creating a url with x86_64 in it. there is no patching matching that url https://github.com/mikefarah/yq/releases/latest/download/x86_64 - 404's jmpsec/osctrl