Commit c8eb90eb authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play common.sh: small fixes

parent 8b008e1c
...@@ -105,8 +105,9 @@ check_supported_arch() ...@@ -105,8 +105,9 @@ check_supported_arch()
{ {
# skip checking if no arches # skip checking if no arches
[ -n "$1" ] || return 0 [ -n "$1" ] || return 0
local arch="$(epm print info -a)"
for i in $* ; do for i in $* ; do
[ "$(epm print info -a)" = "$i" ] && return 0 [ "$arch" = "$i" ] && return 0
done done
return 1 return 1
...@@ -124,4 +125,4 @@ if [ -z "$SUDO" ] && [ "$UID" != "0" ] ; then ...@@ -124,4 +125,4 @@ if [ -z "$SUDO" ] && [ "$UID" != "0" ] ; then
SUDO="sudo" SUDO="sudo"
fi fi
check_supported_arch $SUPPORTEDARCHES || fatal "Only $SUPPORTEDARCHES is supported" check_supported_arch $SUPPORTEDARCHES || fatal "Only '$SUPPORTEDARCHES' architectures 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