diff --git a/files/check-install.sh b/files/check-install.sh index 9cd3c5f..80b9bb9 100644 --- a/files/check-install.sh +++ b/files/check-install.sh @@ -5,11 +5,10 @@ set -xe DIR=`dirname $0` apt-get -yqq update && apt-get install -y hunspell hunspell-ru hunspell-en-us hunspell-de-de jq -curl -s https://extensions.libreoffice.org/extensions/russian-spellcheck-dictionary.-based-on-works-of-aot-group > .dict_page -cat .dict_page | grep -oP " .current_release -echo -n $(cat .current_release) > .current_release -echo -n "/@@download[^\"]+" >> .current_release -cat .dict_page | grep -oP -f .current_release | wget -q -i - -O /tmp/dictionary.otx +curl -s https://extensions.libreoffice.org/en/extensions/show/russian-spellcheck-dictionary > .dict_page +echo -n "https://extensions.libreoffice.org" > .current_release +strings .dict_page | grep -ozP '
  • (\n|.)*?
  • ' | grep -zoP 'href=".*?">Download' | head -1 | sed 's/href="//' | sed 's/">Download//' >> .current_release +cat .current_release | wget -q -i - -O /tmp/dictionary.otx unzip /tmp/dictionary.otx -d /tmp cp /tmp/*.dic /usr/share/hunspell cp /tmp/*.aff /usr/share/hunspell