rubygem-ZenTest/Make-sure-skip-always-has-a-default-value.patch
2024-12-17 10:42:16 +08:00

26 lines
688 B
Diff

From 098b2a6c1ebadbe052bc9e00b982282a66889072 Mon Sep 17 00:00:00 2001
From: jxy_git <jiangxinyu@kylinos.cn>
Date: Mon, 16 Dec 2024 18:30:42 +0800
Subject: [PATCH] Make sure skip always has a default value
---
bin/multiruby | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bin/multiruby b/bin/multiruby
index 07c36e3..d7357d2 100755
--- a/bin/multiruby
+++ b/bin/multiruby
@@ -56,6 +56,8 @@ rcpath = File.expand_path "~/.hoerc"
skip = if File.exist? rcpath then
conf = maybe_load_yaml_file rcpath
conf["multiruby_skip"] || []
+ else
+ []
end
excl = (ENV["EXCLUDED_VERSIONS"] || "").split(/:/) + skip
unless excl.empty? then
--
2.43.0