diff options
author | Daniel Hansson <github@hanssonit.se> | 2020-01-25 01:30:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-25 01:30:30 +0300 |
commit | 0fce3896c614d295e813c9553ac6ac6ecf515baf (patch) | |
tree | ad1cdf1181d5cd9a11bf5ab0f3a0495d548b31da /apps/previewgenerator.sh | |
parent | 32a4580c93414c3029dcd2cee1c51bb6a056483e (diff) |
whiptail fix 3 (#1061)
Diffstat (limited to 'apps/previewgenerator.sh')
-rw-r--r-- | apps/previewgenerator.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/previewgenerator.sh b/apps/previewgenerator.sh index a862bf79..2c2ca56f 100644 --- a/apps/previewgenerator.sh +++ b/apps/previewgenerator.sh @@ -109,7 +109,8 @@ then "SVG" "" ON \ "TIFF" "" ON 2>results - choice=$(< results) +while read -r choice +do case "$choice" in "PNG") occ_command config:system:set enabledPreviewProviders 0 --value="OC\\Preview\\PNG" @@ -158,6 +159,7 @@ then *) ;; esac +done < results rm -f results else # check if imagick ist installed and remove it |