From 1a324d8a6e6669e84d129bcb7b0e04aa09480035 Mon Sep 17 00:00:00 2001 From: Aaron Kaluszka Date: Mon, 26 Jan 2026 11:14:58 -0800 Subject: [PATCH] Fix libvips version sort sort is ascending, so should take last entry, not first --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 1c86e9e..a1d6b50 100755 --- a/install.sh +++ b/install.sh @@ -177,7 +177,7 @@ cd $APP # https://github.com/lovell/sharp/blob/main/src/common.h#L20 VIPS_LOCAL_VERSION="$(pkg-config --modversion vips || true)" VIPS_TARGET_VERSION="8.17.3" -if [[ "$(printf '%s\n' $VIPS_TARGET_VERSION $VIPS_LOCAL_VERSION | sort -V | head -n1)" == "$VIPS_LOCAL_VERSION" ]]; then +if [[ "$(printf '%s\n' $VIPS_TARGET_VERSION $VIPS_LOCAL_VERSION | sort -V | tail -n1)" == "$VIPS_LOCAL_VERSION" ]]; then echo "Local libvips-dev is installed, manually building sharp" pnpm remove sharp SHARP_FORCE_GLOBAL_LIBVIPS=1 npm_config_build_from_source=true pnpm add sharp --ignore-scripts=false --allow-build=sharp