From f9de0487feb66e5c54609a7b11a829495f3f49b5 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 11 Jul 2021 15:29:24 +0200 Subject: [PATCH] adjusted the docker build script to the new zip locate functions --- scripts/travis/deploy_docker.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/scripts/travis/deploy_docker.sh b/scripts/travis/deploy_docker.sh index 71b338c8..828325b2 100644 --- a/scripts/travis/deploy_docker.sh +++ b/scripts/travis/deploy_docker.sh @@ -16,14 +16,10 @@ else exit 1 fi -# FIXME: This dosn't work anymore -zip_file=$(find "$PACKAGES_DIRECTORY" -maxdepth 1 -name "TeaWeb-release*.zip" -print) -[[ $(echo "$zip_file" | wc -l) -ne 1 ]] && { - echo "Invalid .zip file count (Expected 1 but got $(echo "$zip_file" | wc -l)): ${zip_file[*]}" - exit 1 -} -[[ ! -e "$zip_file" ]] && { - echo "File ($zip_file) does not exists" +# We're only using the release packages even on the development branch +zip_file=$(find_release_package "web" "release") +[[ $? -ne "$zip_file" ]] && { + echo "TeaWeb release package does not exists ($zip_file)" exit 1 }