CODENVY-1544: workaround zero-length ws agent archive in snapshots

Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
6.19.x
Alexander Garagatyi 2017-01-18 17:09:07 +02:00
parent 50cd7e1366
commit 383ae5edb6
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -231,7 +231,7 @@ WORKSPACE_MASTER_URI=$(echo $CHE_API | cut -d / -f 1-3)
eval "DOWNLOAD_AGENT_BINARIES_URI=${DOWNLOAD_AGENT_BINARIES_URI}"
if [ -f "${LOCAL_AGENT_BINARIES_URI}" ]
if [ -f "${LOCAL_AGENT_BINARIES_URI}" ] && [ -s "${LOCAL_AGENT_BINARIES_URI}" ]
then
AGENT_BINARIES_URI="file://${LOCAL_AGENT_BINARIES_URI}"
else