Skip to content

Commit

Permalink
Fix bug on startswith on AL 1 and instead use version 2023 fully
Browse files Browse the repository at this point in the history
  • Loading branch information
sriram2520 authored Jun 17, 2024
1 parent 998d064 commit 7bc52b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/wkhtmltopdf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ suffix = case RbConfig::CONFIG['host_os']
os = 'ubuntu_22.04' if os.start_with?('ubuntu_22.') ||
os.start_with?('tuxedo_22.')

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

os = 'centos_7' if (os.start_with?('amzn_2') && !os.start_with?('amzn_20')) ||
Expand All @@ -54,7 +54,7 @@ suffix = case RbConfig::CONFIG['host_os']
os = 'centos_8' if os.start_with?('rocky_8') ||
os.start_with?('rhel_8.') ||
os.start_with?('ol_8.') ||
os.start_with?('amzn_20')
os == 'amzn_2023'

os_based_on_debian_9 = os.start_with?('debian_9') ||
os.start_with?('deepin')
Expand Down

0 comments on commit 7bc52b8

Please sign in to comment.