File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -35,12 +35,20 @@ module Sentry
35
35
{% end % }
36
36
end
37
37
38
+ def run_command : String
39
+ {% if flag?(:win32 ) % }
40
+ " #{ @run_command } .exe"
41
+ {% else % }
42
+ @run_command
43
+ {% end % }
44
+ end
45
+
38
46
def run : Nil
39
47
stdout " 🤖 Your SentryBot is vigilant. beep-boop..."
40
48
41
49
run_shards_install if @run_shards_install
42
50
43
- File .delete?(@ run_command ) if @should_build
51
+ File .delete?(run_command) if @should_build
44
52
45
53
loop do
46
54
if @should_kill
@@ -166,15 +174,15 @@ module Sentry
166
174
167
175
stdout " 🤖 starting #{ @display_name } ..."
168
176
169
- if File .file?(@ run_command )
177
+ if File .file?(run_command)
170
178
@app_process = Process .new(
171
- @ run_command ,
179
+ run_command,
172
180
@run_args_list ,
173
181
output: :inherit ,
174
182
error: :inherit
175
183
)
176
184
else
177
- puts " 🤖 Sentry error: the inferred run command file(#{ @ run_command} ) \
185
+ puts " 🤖 Sentry error: the inferred run command file(#{ run_command } ) \
178
186
does not exist. either set correct run command use `-r COMMAND' or fix the \
179
187
`BUILD ARGS' to output correct run command. SentryBot shutting down..."
180
188
exit 1
You can’t perform that action at this time.
0 commit comments