Skip to content

Commit 33cfa36

Browse files
committed
Rename exit code
1 parent 8889466 commit 33cfa36

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/litestream.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,13 @@ def systemctl_info
152152

153153
def process_info
154154
litestream_replicate_ps = `ps -ax | grep litestream | grep replicate`
155-
systemctl_exit_code = $?.exitstatus
156-
return unless systemctl_exit_code.zero?
155+
exit_code = $?.exitstatus
156+
return unless exit_code.zero?
157157

158158
info = {}
159159
litestream_replicate_ps.chomp.split("\n").each do |line|
160160
next unless line.include?("litestream replicate")
161+
161162
pid, * = line.split(" ")
162163
info[:pid] = pid
163164
state, _, lstart = `ps -o "state,lstart" #{pid}`.chomp.split("\n").last.partition(/\s+/)

0 commit comments

Comments
 (0)