Skip to content
Snippets Groups Projects
Commit 2c559d64 authored by Christopher Spinrath's avatar Christopher Spinrath
Browse files

uck-functions/lang support: grep may return 1

if there is no match
parent 8b91497b
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ function install_lang_packages()
apt-get -y install $MISSING_LANG_PKG
fi
EXTRA_LANG_PKG="$(dpkg-query --show | cut -f1 | grep -E '^(language-pack|language-support|firefox-locale|thunderbird-locale|libreoffice-help|libreoffice-l10n)' | grep -Ev "[-](de|en)\>")" # remove extra language packages
EXTRA_LANG_PKG="$(dpkg-query --show | cut -f1 | grep -E '^(language-pack|language-support|firefox-locale|thunderbird-locale|libreoffice-help|libreoffice-l10n)' | grep -Ev "[-](de|en)\>" || true)" # remove extra language packages
if [ -n "$EXTRA_LANG_PKG" ]; then
apt-get -y purge $EXTRA_LANG_PKG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment