diff options
author | Joas Schilling <coding@schilljs.com> | 2023-04-17 10:52:20 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-04-24 08:59:38 +0200 |
commit | 7391881abeeb6b80926c1a24bb51a6cc380e1f21 (patch) | |
tree | fa84d105e9266c62c6343e995b659d86459254a3 /build/image-optimization.sh | |
parent | 8eda51de15f05dd4419926176109a6de2377ac88 (diff) | |
download | nextcloud-server-7391881abeeb6b80926c1a24bb51a6cc380e1f21.tar.gz nextcloud-server-7391881abeeb6b80926c1a24bb51a6cc380e1f21.zip |
chore(assets): Require scour 0.38.2 (Ubuntu LTS 22.04+) for SVG optimization
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'build/image-optimization.sh')
-rwxr-xr-x | build/image-optimization.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build/image-optimization.sh b/build/image-optimization.sh index 1079716e626..032f8982d80 100755 --- a/build/image-optimization.sh +++ b/build/image-optimization.sh @@ -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='../' |