Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <github@hanssonit.se>2020-01-25 01:30:30 +0300
committerGitHub <noreply@github.com>2020-01-25 01:30:30 +0300
commit0fce3896c614d295e813c9553ac6ac6ecf515baf (patch)
treead1cdf1181d5cd9a11bf5ab0f3a0495d548b31da /apps/previewgenerator.sh
parent32a4580c93414c3029dcd2cee1c51bb6a056483e (diff)
whiptail fix 3 (#1061)
Diffstat (limited to 'apps/previewgenerator.sh')
-rw-r--r--apps/previewgenerator.sh4
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