Skip to content

Commit b8dbaf9

Browse files
committed
fix umu runtime match
1 parent 8236f56 commit b8dbaf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ get_umu_url() {
144144
'https://lutris.net/api/runtimes?format=json')
145145
_api_exit=$?
146146
if [ $_api_exit -eq 0 ]; then
147-
_parsed_str="$(printf '%s' "$_api_resp" | awk -F'"' '/"name":"umu"/ {for(i=1; i<=NF; i++) if($i=="url") {print $(i+2); exit}}')"
147+
_parsed_str="$(printf '%s' "$_api_resp" | awk -F'"name":"umu"' '{ split($2, urls, "url\":\""); print substr(urls[2], 1, index(urls[2], "\"")-1) }')"
148148
# Validate parsed output
149149
case $_parsed_str in
150-
"https://"*)
150+
*"umu-launcher"*)
151151
printf '%s' "$_parsed_str"
152152
exit 0
153153
;;

0 commit comments

Comments
 (0)