]> source.dussan.org Git - nextcloud-server.git/commitdiff
chore(assets): Require scour 0.38.2 (Ubuntu LTS 22.04+) for SVG optimization
authorJoas Schilling <coding@schilljs.com>
Mon, 17 Apr 2023 08:52:20 +0000 (10:52 +0200)
committerJoas Schilling <coding@schilljs.com>
Mon, 24 Apr 2023 06:59:38 +0000 (08:59 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
build/image-optimization.sh

index 1079716e626bdf2489ca293fbeb36fc7e1c6d962..032f8982d803a90c5258cd8fb5dabe7d1ee89dd4 100755 (executable)
@@ -18,6 +18,13 @@ if ! [ -x "$SCOUR" ]; then
        exit 3
 fi
 
+REQUIRED_SCOUR_VERSION="0.38.2"
+SCOUR_VERSION=$(scour --version)
+if dpkg --compare-versions $SCOUR_VERSION lt $REQUIRED_SCOUR_VERSION; then
+       echo "scour version $REQUIRED_SCOUR_VERSION or higher is required, found $SCOUR_VERSION" >&2
+       exit 3
+fi
+
 set +e
 
 CHECK_DIR='../'