more optims

This commit is contained in:
Kévin Dunglas
2023-08-22 11:13:51 +02:00
committed by Jerry Ma
parent cf35a270bb
commit e7e0ac006f
2 changed files with 35 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
# set error-quit, verbose, non-variable-quit
set -eu
@@ -52,6 +52,8 @@ china)
esac
apk add --no-cache curl || true
test -d "${__PROJECT__}"/downloads || mkdir "${__PROJECT__}"/downloads
# download static php binary
test -f "${__PROJECT__}"/downloads/runtime.tar.gz || { echo "Downloading $__PHP_RUNTIME_URL__ ..." && curl -#fSL -o "${__PROJECT__}"/downloads/runtime.tar.gz "$__PHP_RUNTIME_URL__" ; }