Skip to content

Commit

Permalink
Merge pull request #152 from cromega/master
Browse files Browse the repository at this point in the history
Add support for Linux Mint 20 and 21
  • Loading branch information
unixmonkey authored Feb 6, 2023
2 parents add3834 + dc423e5 commit f7928e1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions bin/wkhtmltopdf
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,22 @@ suffix = case RbConfig::CONFIG['host_os']
os = `. /etc/os-release 2> /dev/null && echo ${ID}_${VERSION_ID}`.strip

os = 'ubuntu_16.04' if os.start_with?('ubuntu_16.') ||
os.start_with?('ubuntu_17.')
os.start_with?('ubuntu_17.') ||
os.start_with?('linuxmint_18.')

os = 'ubuntu_18.04' if os.start_with?('ubuntu_18.') ||
os.start_with?('ubuntu_19.') ||
os.start_with?('elementary') ||
os.start_with?('linuxmint') ||
os.start_with?('linuxmint_19.') ||
os.start_with?('pop') ||
os.start_with?('zorin')

os = 'ubuntu_20.04' if os.start_with?('ubuntu_20.') ||
os.start_with?('ubuntu_21.')
os.start_with?('ubuntu_21.') ||
os.start_with?('linuxmint_20.')

os = 'ubuntu_22.04' if os.start_with?('ubuntu_22.')
os = 'ubuntu_22.04' if os.start_with?('ubuntu_22.') ||
os.start_with?('linuxmint_21.')

os = 'centos_6' if (os.start_with?('amzn_') && os != 'amzn_2') ||
(os.empty? && File.read('/etc/centos-release').start_with?('CentOS release 6'))
Expand Down

0 comments on commit f7928e1

Please sign in to comment.