Fallback to macrecovery from Quickemu project
This commit is contained in:
parent
5fd8271a79
commit
78233a50ce
7
quickget
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…
Reference in New Issue
Block a user