You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2020/07/05 21:01:19 UTC
[whimsy] branch master updated: simplify
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 08f34ae simplify
08f34ae is described below
commit 08f34ae13647a0ec077d5bf6fb35daef7de5a6b1
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sun Jul 5 17:01:04 2020 -0400
simplify
---
tools/pubsub.rb | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/tools/pubsub.rb b/tools/pubsub.rb
index 6d4924f..eb144e9 100644
--- a/tools/pubsub.rb
+++ b/tools/pubsub.rb
@@ -232,14 +232,7 @@ end
if restartable
STDERR.puts 'restarting'
- # reconstruct path to Ruby executable
- require 'rbconfig'
- ruby = File.join(
- RbConfig::CONFIG["bindir"],
- RbConfig::CONFIG["ruby_install_name"] + RbConfig::CONFIG["EXEEXT"]
- )
-
# relaunch script after a one second delay
sleep 1
- exec ruby, __FILE__, *ARGV
+ exec RbConfig.ruby, __FILE__, *ARGV
end