Fixed the deploy file grep part

canary
WolverinDEV 2020-04-09 18:13:18 +02:00
parent 238a493d65
commit c22dfc4fe0
1 changed files with 2 additions and 2 deletions

View File

@ -14,9 +14,9 @@ chmod 600 /tmp/sftp_key
} }
cd "$(dirname "$0")/.." || { echo "Failed to enter base dir"; exit 1; } 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 "$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 exit 1
} }
[[ ! -e "$file" ]] && { [[ ! -e "$file" ]] && {