ruby-changes:62697
From: Lars <ko1@a...>
Date: Tue, 25 Aug 2020 18:12:05 +0900 (JST)
Subject: [ruby-changes:62697] 8d68f54c94 (master): Fix erb executable
https://git.ruby-lang.org/ruby.git/commit/?id=8d68f54c94 From 8d68f54c94ff46f3677f133fb1b6c48861efc62e Mon Sep 17 00:00:00 2001 From: Lars Kanis <kanis@c...> Date: Mon, 24 Aug 2020 14:18:16 +0200 Subject: Fix erb executable Run ERb processing unconditionally since __FILE__ and $0 doesn't match in a gem context. diff --git a/libexec/erb b/libexec/erb index 2435224..ded7699 100755 --- a/libexec/erb +++ b/libexec/erb @@ -171,6 +171,4 @@ EOU https://github.com/ruby/ruby/blob/trunk/libexec/erb#L171 end end -if __FILE__ == $0 - ERB::Main.run -end +ERB::Main.run -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/