We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d515a0 commit a05f52aCopy full SHA for a05f52a
script/cli/check.lua
@@ -8,7 +8,12 @@ local util = require 'utility'
8
9
local numThreads = tonumber(NUM_THREADS or 1)
10
11
-local exe = arg[-1]
+local exe
12
+local minIndex = -1
13
+while arg[minIndex] do
14
+ exe = arg[minIndex]
15
+ minIndex = minIndex - 1
16
+end
17
-- TODO: is this necessary? got it from the shell.lua helper in bee.lua tests
18
if platform.os == 'windows' and not exe:match('%.[eE][xX][eE]$') then
19
exe = exe..'.exe'
0 commit comments