2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 19:08:59 +00:00

AppImage: warn if older than Ubuntu 16.04

14.04 has been out of security support for a while.
This commit is contained in:
Jay Berkenbilt 2020-01-20 15:04:51 -05:00
parent a8b6ff5763
commit 3334a89d80

View File

@ -49,14 +49,14 @@ fi
_osversion=$(cat /etc/os-release | grep PRETTY_NAME | awk -F'=' '{print $2}' | sed 's#"##g')
# Warn users building the AppImage locally:
if [[ ! $_osversion =~ Ubuntu\ 14.04.*\ LTS ]]; then
if [[ ! $_osversion =~ Ubuntu\ 16.04.*\ LTS ]]; then
set +x
echo ""
# 0 1 2 3 4 5 6 7
# 01234567890123456789012345678901234567890123456789012345678901234567890123456789
echo "+===========================================================================+"
echo "|| WARNING: You are about to build a QPDF AppImage on a system which is ||"
echo "|| NOT Ubuntu 14.04 LTS ('Trusty'). ||"
echo "|| NOT Ubuntu 16.04 LTS ('Xenial'). ||"
echo "|| ||"
echo "|| It is recommended that you use a distribution that is at least a ||"
echo "|| few years old to maximize the number of Linux distributions the ||"