11-check-thunderbird-addons 473 Bytes
Newer Older
1 2 3
#!/bin/sh

set -e
intrigeri's avatar
intrigeri committed
4
set -u
5 6 7

echo "Checking for Thunderbird language packages"

8
SUFFIX="@thunderbird.mozilla.org.xpi"
9 10 11 12 13 14 15 16 17 18 19 20
LANG_PACK_COUNT=$(find /usr/share/thunderbird/extensions/ -name "langpack-*${SUFFIX}" | wc -l)

if [ "$LANG_PACK_COUNT" = "0" ]; then
  cat >&2 <<EOF
E: No language packages matching the ${SUFFIX} suffix.
   It is likely that tails-shell-library/thunderbird.sh needs an update
EOF
  exit 1
else
  echo "I: ${LANG_PACK_COUNT} language packages found" >&2
fi