aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-03-18 14:13:10 +0100
committerMiquel Sabaté Solà <mssola@mssola.com>2026-03-18 14:13:10 +0100
commite4a6251097f6ac5258846d6eeb0defd21faf39a0 (patch)
tree565ea11e6bea41d03b01d815078304bd0c981caf
parent44e7c0038b4cf74f3b64d71ad4cb79d8a2ae22e5 (diff)
downloaddotfiles-e4a6251097f6ac5258846d6eeb0defd21faf39a0.tar.gz
dotfiles-e4a6251097f6ac5258846d6eeb0defd21faf39a0.zip
doctor: do not make an exact match on the platform
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
-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'
##