diff --git a/bin/setup-runtime b/bin/setup-runtime index 84061a19..4ae41b7c 100755 --- a/bin/setup-runtime +++ b/bin/setup-runtime @@ -52,7 +52,9 @@ china) esac -apk add --no-cache curl || true +if ! command -v curl &> /dev/null && command -v apk &> /dev/null; then + apk add --no-cache curl +fi test -d "${__PROJECT__}"/downloads || mkdir "${__PROJECT__}"/downloads # download static php binary