aboutsummaryrefslogtreecommitdiff
path: root/bin/doctor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'bin/doctor.rb')
-rwxr-xr-xbin/doctor.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/doctor.rb b/bin/doctor.rb
index 9770cf7..3b5071e 100755
--- a/bin/doctor.rb
+++ b/bin/doctor.rb
@@ -21,8 +21,8 @@ require 'pathname'
##
# Early checks.
-raise 'Only Linux on x86/ARM64 supported!' if RUBY_PLATFORM != 'x86_64-linux' &&
- RUBY_PLATFORM != 'aarch64-linux'
+raise 'Only Linux on x86/ARM64 supported!' if !RUBY_PLATFORM.start_with?('x86_64') &&
+ !RUBY_PLATFORM.start_with?('aarch64')
raise 'Only CRuby, sorry!' if RUBY_ENGINE != 'ruby'
##