From c22dfc4fe05b86695d9617da246a6468d3b5ba36 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Thu, 9 Apr 2020 18:13:18 +0200 Subject: [PATCH] Fixed the deploy file grep part --- scripts/travis_deploy_dev_server.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/travis_deploy_dev_server.sh b/scripts/travis_deploy_dev_server.sh index e93d21e7..d025b4ed 100644 --- a/scripts/travis_deploy_dev_server.sh +++ b/scripts/travis_deploy_dev_server.sh @@ -14,9 +14,9 @@ chmod 600 /tmp/sftp_key } cd "$(dirname "$0")/.." || { echo "Failed to enter base dir"; exit 1; } -file=$(find "$PACKAGES_DIRECTORY" -maxdepth 1 -name "*.zip" -print) +file=$(find "$PACKAGES_DIRECTORY" -maxdepth 1 -name "TeaWeb-Release*.zip" -print) [[ $(echo "$file" | wc -l) -ne 1 ]] && { - echo "Invalid release file count (Expected 1 but got $(echo "$file" | wc -l))" + echo "Invalid release file count (Expected 1 but got $(echo "$file" | wc -l)): ${file[*]}" exit 1 } [[ ! -e "$file" ]] && {