adjusted the docker build script to the new zip locate functions

develop
WolverinDEV 2021-07-11 15:29:24 +02:00
parent 597375676e
commit f9de0487fe
1 changed files with 4 additions and 8 deletions

View File

@ -16,14 +16,10 @@ else
exit 1 exit 1
fi fi
# FIXME: This dosn't work anymore # We're only using the release packages even on the development branch
zip_file=$(find "$PACKAGES_DIRECTORY" -maxdepth 1 -name "TeaWeb-release*.zip" -print) zip_file=$(find_release_package "web" "release")
[[ $(echo "$zip_file" | wc -l) -ne 1 ]] && { [[ $? -ne "$zip_file" ]] && {
echo "Invalid .zip file count (Expected 1 but got $(echo "$zip_file" | wc -l)): ${zip_file[*]}" echo "TeaWeb release package does not exists ($zip_file)"
exit 1
}
[[ ! -e "$zip_file" ]] && {
echo "File ($zip_file) does not exists"
exit 1 exit 1
} }