Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.5.1: correct invoking overmind #178

Merged
merged 1 commit into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packaging/rubygems/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
overmind (0.1.2)
overmind (2.5.1)

GEM
remote: https://rubygems.org/
Expand Down
3 changes: 1 addition & 2 deletions packaging/rubygems/bin/overmind
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ require 'overmind/cli'

begin
cli = Overmind::CLI.new
exit_code = cli.run(ARGV)
exit exit_code
cli.run(ARGV)
rescue StandardError => e
warn e.message
exit 1
Expand Down
8 changes: 2 additions & 6 deletions packaging/rubygems/lib/overmind/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,8 @@ def run(args = [])
# Use prebuild tmux if found
path_with_tmux = File.exist?(TMUX_PATH) ? "#{TMUX_FOLDER_PATH}:#{ENV["PATH"]}" : ENV["PATH"]

# Spawns the Overmind process with modified PATH if necessary
pid = spawn({"PATH" => path_with_tmux}, "#{OVERMIND_PATH} #{args.join(" ")}")

Process.wait(pid)

$?.exitstatus
# exec the Overmind process with modified PATH if necessary
exec({"PATH" => path_with_tmux}, "#{OVERMIND_PATH} #{args.join(" ")}")
end

private
Expand Down
2 changes: 1 addition & 1 deletion packaging/rubygems/lib/overmind/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Overmind
VERSION = "2.5.0"
VERSION = "2.5.1"
end
Loading