Commit ef042700 authored by Vitaly Lipatov's avatar Vitaly Lipatov

play.d/common.sh: use eget --check in check_url_is_accessible

parent 31994fe4
......@@ -84,12 +84,10 @@ check_supported_arch()
return 1
}
# TODO: improve me (move to eget, just http-accessed)
check_url_is_accessible()
{
local res
res="$(epm tool eget --list "$1" "$2" 2>/dev/null)"
[ -n "$res" ]
epm tool eget --check "$1"
}
check_supported_arch $SUPPORTEDARCHES || fatal "Only $SUPPORTEDARCHES is 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