diff --git a/server/repro/package_server.sh b/server/repro/package_server.sh index 69e9407..0164393 100755 --- a/server/repro/package_server.sh +++ b/server/repro/package_server.sh @@ -29,7 +29,8 @@ mv TeaSpeakServerTmp TeaSpeakServer strip -s -p -v TeaSpeakServer || { echo "failed to strip symbols!"; exit 1; } patchelf --set-rpath ./libs/ TeaSpeakServer || { echo "failed to set rpath!"; exit 1; } -tar --dereference -cvf - * | gzip -9 "../${BUILD_FILENAME}" || { echo "failed to package server"; exit 1; } +tar --dereference -cvf - * | gzip -f -9 > "../${BUILD_FILENAME}" +[[ $? -ne 0 ]] && { echo "failed to package server"; exit 1; } cd .. rm -r finalenv