1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paperless-ngx_ynh.git synced 2024-09-03 19:56:33 +02:00

Fix Ghostscript upgrade condition

This commit is contained in:
tituspijean 2024-02-12 19:18:14 +01:00
parent 1a3c3c71e6
commit 6422d65379
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -98,7 +98,7 @@ popd
#=================================================
# BUILD GHOSTCRIPT SPECIFIC VERSION
#=================================================
if [[ ! -f $install_dir/ghostscript/bin/gs ]] && grep -q "10.02.1" $($install_dir/ghostscript/bin/gs -v)
if ! dpkg --compare-versions "$($install_dir/ghostscript/bin/gs --version &>/dev/null)" ge "10.02.1"
then
ynh_script_progression --message="Building Ghostscript dependency... (this will take a long time!)"