Skip to content

Commit e5ca9df

Browse files
committed
refactor: cleanup image test script
1 parent 2953929 commit e5ca9df

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

runtime/test-image.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ fi
5050

5151
# 5. Modules (with standard Lambda LD_LIBRARY_PATH)
5252
LAMBDA_LD_PATH="/opt/lib:/lib64:/usr/lib64"
53-
MODULES=$(docker run --rm --platform "$PLATFORM" -e LD_LIBRARY_PATH="$LAMBDA_LD_PATH" --entrypoint /opt/ymir/bin/php "$IMAGE" -m)
54-
PHP_VER=$(docker run --rm --platform "$PLATFORM" --entrypoint /opt/ymir/bin/php "$IMAGE" -r "echo PHP_VERSION_ID;")
53+
MODULES=$(docker run --rm --platform "$PLATFORM" -e LD_LIBRARY_PATH="$LAMBDA_LD_PATH" --entrypoint /opt/ymir/bin/php "$IMAGE" -m 2>/dev/null)
54+
PHP_VER=$(docker run --rm --platform "$PLATFORM" -e LD_LIBRARY_PATH="$LAMBDA_LD_PATH" --entrypoint /opt/ymir/bin/php "$IMAGE" -r "echo PHP_VERSION_ID;" 2>/dev/null)
5555

5656
REQUIRED=("apcu" "igbinary" "zstd" "imagick" "intl" "pdo_mysql")
57-
if [ "$PHP_VER" -ge 70400 ]; then
57+
if [ -n "$PHP_VER" ] && [ "$PHP_VER" -ge 70400 ]; then
5858
REQUIRED+=("relay" "msgpack")
5959
else
6060
REQUIRED+=("redis")

0 commit comments

Comments
 (0)