Commit 65943167 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play common.sh: still use version after warn_version_is_not_supported if ipfs is using

parent 77570dea
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
echo "$EPM_OPTIONS" | grep -q -- "--force" && force="--force" echo "$EPM_OPTIONS" | grep -q -- "--force" && force="--force"
echo "$EPM_OPTIONS" | grep -q -- "--auto" && auto="--auto" echo "$EPM_OPTIONS" | grep -q -- "--auto" && auto="--auto"
echo "$EPM_OPTIONS" | grep -q -- "--latest" && latest="true" echo "$EPM_OPTIONS" | grep -q -- "--latest" && latest="true"
[ -n "$EGET_IPFS_DB" ] && ipfs="true"
fatal() fatal()
...@@ -103,6 +104,10 @@ is_supported_arch() ...@@ -103,6 +104,10 @@ is_supported_arch()
warn_version_is_not_supported() warn_version_is_not_supported()
{ {
[ "$VERSION" = "*" ] && return [ "$VERSION" = "*" ] && return
if [ -n "$ipfs" ] ; then
echo -e "\nWarning: Specifying the version is not supported by vendor. But you run me with --ipfs, so I am working around it ...\n"
return
fi
echo -e "\nWarning: Specifying the version is not supported by vendor. Downloading latest version ...\n" echo -e "\nWarning: Specifying the version is not supported by vendor. Downloading latest version ...\n"
VERSION="*" VERSION="*"
} }
......
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