# this has to be defined after root elevation or script will fail.
deps_installed() {
  for var in "$@"; do
    if ! command -v -- "${var}" >/dev/null 2>&1; then
      echo "${var} is required but not installed, exiting."
      exit 1
    fi
  done
}

# make sure we have everything actually installed that we need to install this.
print "Checking for dependencies...\n"
    deps_installed bash curl tar mktemp install make
