Yuzu EA fix

This commit is contained in:
Rodrigo 2023-09-11 16:40:25 +02:00
parent a0c76e0467
commit dd594b17e9

View File

@ -232,6 +232,10 @@ YuzuEA_install() {
local currentVer=$(echo "$yuzuEaMetadata" | jq -r '.files[] | select(.name|test(".*.AppImage")).name') local currentVer=$(echo "$yuzuEaMetadata" | jq -r '.files[] | select(.name|test(".*.AppImage")).name')
local tokenValue="$1" local tokenValue="$1"
local showProgress="$2" local showProgress="$2"
local user
local auth
read -r user auth <<<"$(echo "$tokenValue"==== | fold -w 4 | sed '$ d' | tr -d '\n' | base64 --decode| awk -F":" '{print $1" "$2}')" || echo "invalid"
#echo "get bearer token" #echo "get bearer token"
BEARERTOKEN=$(curl -X POST ${jwtHost} -H "X-Username: ${user}" -H "X-Token: ${auth}" -H "User-Agent: EmuDeck") BEARERTOKEN=$(curl -X POST ${jwtHost} -H "X-Username: ${user}" -H "X-Token: ${auth}" -H "User-Agent: EmuDeck")