Commit 702888ef authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play common.sh: add local file support to get_json_value()

parent 089f8944
...@@ -154,7 +154,12 @@ parse_json_value() ...@@ -154,7 +154,12 @@ parse_json_value()
# URL/file ["version"] # URL/file ["version"]
get_json_value() get_json_value()
{ {
if is_url "$1" ; then
eget -q -O- "$1" | parse_json_value "$2" eget -q -O- "$1" | parse_json_value "$2"
else
[ -s "$1" ] || fatal "File $1 is missed, can't get json"
parse_json_value "$2" < "$1"
fi
} }
snap_get_pkgurl() snap_get_pkgurl()
......
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