Commit a4a27b25 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epsonscan2: fix JSON item index after API response changed

parent fe91d08b
......@@ -14,10 +14,10 @@ pkgtype=$(epm print info -p)
arch="$(epm print info -a)"
case "$pkgtype-$arch" in
rpm-x86_64)
PKGURL="$(get_json_value "https://download-center.epson.com/api/v1/modules/?device_id=DS-770&os=RPM&region=RU&language=en" '["items",1,"url"]')"
PKGURL="$(get_json_value "https://download-center.epson.com/api/v1/modules/?device_id=DS-770&os=RPM&region=RU&language=en" '["items",2,"url"]')"
;;
*-x86_64)
PKGURL="$(get_json_value "https://download-center.epson.com/api/v1/modules/?device_id=DS-770&os=DEBX64&region=RU&language=en" '["items",1,"url"]')"
PKGURL="$(get_json_value "https://download-center.epson.com/api/v1/modules/?device_id=DS-770&os=DEBX64&region=RU&language=en" '["items",2,"url"]')"
;;
*)
fatal "$arch arch is not supported"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment