summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Kanis <kanis@comcard.de>2020-08-24 14:18:16 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-08-25 18:11:43 +0900
commit8d68f54c94ff46f3677f133fb1b6c48861efc62e (patch)
treed749ca456abd3c1b38e8ee7dccc13466406da122
parente6ac1fb6121d6cb694d107f205713d92b7b4a427 (diff)
Fix erb executable
Run ERb processing unconditionally since __FILE__ and $0 doesn't match in a gem context.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3449
-rwxr-xr-xlibexec/erb4
1 files changed, 1 insertions, 3 deletions
diff --git a/libexec/erb b/libexec/erb
index 2435224fe1e..ded76991dc0 100755
--- a/libexec/erb
+++ b/libexec/erb
@@ -171,6 +171,4 @@ EOU
end
end
-if __FILE__ == $0
- ERB::Main.run
-end
+ERB::Main.run