Skip to content

Commit 5e53bb3

Browse files
author
Miyake J Takuma
committed
Prevent using the binary for Debian 10 when running on Debian 9
1 parent a2e9ea4 commit 5e53bb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/wkhtmltopdf

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ suffix = case RbConfig::CONFIG['host_os']
2929
os_based_on_centos_7 = os.start_with?('amzn_2')
3030
os = 'centos_7' if os_based_on_centos_7
3131

32-
os_based_on_debian_9 = (/deepin/ =~ os)
32+
os_based_on_debian_9 = (/(debian_9|deepin)/ =~ os)
3333
os = 'debian_9' if os_based_on_debian_9
3434

35-
os_based_on_debian = os.start_with?('debian')
35+
os_based_on_debian = !os_based_on_debian_9 && os.start_with?('debian')
3636
os = 'debian_10' if os_based_on_debian
3737

3838
os_based_on_archlinux = os.start_with?('arch_') || os.start_with?('manjaro_')

0 commit comments

Comments
 (0)