From 3d9a3194b29d3f98dbbaf791985653b002246193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Tue, 22 Aug 2023 14:26:53 +0200 Subject: [PATCH] hide warning --- bin/setup-runtime | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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