Fallback to macrecovery from Quickemu project

pull/163/head
Martin Wimpress 3 years ago
parent 5fd8271a79
commit 78233a50ce
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
  1. 7
      quickget

@ -778,13 +778,12 @@ function get_macos() {
elif [ -x /usr/bin/macrecovery ]; then elif [ -x /usr/bin/macrecovery ]; then
MACRECOVERY="/usr/bin/macrecovery" MACRECOVERY="/usr/bin/macrecovery"
else else
web_get "https://raw.githubusercontent.com/acidanthera/OpenCorePkg/master/Utilities/macrecovery/macrecovery.py" "${HOME}/.quickemu" web_get "https://raw.githubusercontent.com/wimpysworld/quickemu/master/macrecovery" "${HOME}/.quickemu"
MACRECOVERY="python3 ${HOME}/.quickemu/macrecovery.py" MACRECOVERY="python3 ${HOME}/.quickemu/macrecovery"
sed -i 's/\<env python\>/env python3/g' "${MACRECOVERY}"
fi fi
if [ -z "${MACRECOVERY}" ]; then if [ -z "${MACRECOVERY}" ]; then
echo "ERROR! Can not find a usable macrecovery.py." echo "ERROR! Can not find a usable macrecovery."
exit 1 exit 1
fi fi

Loading…
Cancel
Save